You must disable input if the check box is cleared, and when it is checked, enable it.
My code looks like this:
<div class="y">
<input type="checkbox" class="myCheck" />
<input type="select" name="x" class="mySelect" />
</div>
<div class="y">
<input type="checkbox" class="myCheck" />
<input type="select" name="x" class="mySelect" />
</div>
<div class="y">
<input type="checkbox" class="myCheck" />
<input type="select" name="x" class="mySelect" />
</div>
But I want to disable and enable the selection input corresponding to the checkbox. If the user clicks at the first moment, enable the first input and do the same for the second and third.
user4142632
source
share