I have a html table having different rows and columns, the text input has a class similar to the value of the checkbox
I would like to disable a textinput in the same row as the checkbox if the checkbox is not checked
This is the html
<table>
<tr>
<td><input type="checkbox" name="new" value="37"></td>
<td><input type="text" name="new" id="quantity" class="37"></td>
</tr>
<tr>
<td><input type="checkbox" name="new" value="38"></td>
<td><input type="text" name="new" id="quantity" class="38"></td>
</tr>
.....#this continue
</table>
I would like to check if the checkbox is checked hence disable the input
How can i go on using jquery
Aucun commentaire:
Enregistrer un commentaire