How can I find out which of the input fields was clicked or is currently selected. I use 13 input fields. These should be checked whether the input that was specified fits. Is there a possibility to interact with the fields or is it better to give each input field an id and then read it out and compare it? attached the test html code
<div class="d5246b-task js-d5246b-inputs">
<div class="d5246b-find">
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">b</p>
<input class="d5246b-input-letter" placeholder="_">
</div>
<div class="d5246b-find">
<p class="d524b-input-fix-letter">l</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">n</p>
</div>
<div class="d5246b-find">
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">r</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
</div>
<div class="d5246b-find">
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">y</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
</div>
<div class="d5246b-find">
<p class="d524b-input-fix-letter">e</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">g</p>
</div>
<div class="d5246b-find">
<p class="d524b-input-fix-letter">o</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">q</p>
</div>
<div class="d5246b-find">
<p class="d524b-input-fix-letter">c</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">e</p>
</div>
<div class="d5246b-find">
<p class="d524b-input-fix-letter">t</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">w</p>
</div>
<div class="d5246b-find">
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
<p class="d524b-input-fix-letter">h</p>
<input class="d5246b-input-letter" max-lenghth="1" placeholder="_">
</div>
</div>
Last information: sorry that I did not consider this and did not provide the information. the idea is that only one input is allowed. so an "a" as an example. if the input fits. the input should jump further.