_mercury
_mercury2y ago

✅ – _mercury – 21-33 Dec 30

I had many instances of divs that each contains an input they are generated dynamically I want ant click on the div to focus the input ?
4 Replies
_mercury
_mercury2y ago
like this
<div>
<input />
</div>
<div>
<input />
</div>
ScriptyChris
ScriptyChris2y ago
You should swap <div> for <label> And such wrapped <input /> should then receive a focus after interaction with it's label
reactibot
reactibot2y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1058498081911476296
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1058498081911476296 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26