I have two ul list tags that contain inputs with the same classes.
What I want to do is show the element that has the same class as the input I'm typing on the keyboard and hide if current input with same class is empty.
Example: If I want to write to the input with class "test1" I want the element with class "test1" from the other list to be shown:
<ul id="contTestA">
<li><input type="text" class="test1" /></li>
<li><input type="text" class="test2" /></li>
<li><input type="text" class="test3" /></li>
</ul>
<ul id="contTestB">
<li class="test1" style="display:none;"><input type="text" /></li>
<li class="test2" style="display:none;"><input type="text" /></li>
<li class="test3" style="display:none;"><input type="text" /></li>
</ul>
Thanks for any help