I have an html table:
<table>
<tr>
<td>
<input type="checkbox" name="myCheck">
</td>
</tr>
</table>
I want to change the backcolor of the table cell when i click on the checkbox. The table cell doesn't seem to be the parent of the checkbox.
What is the correct way to get a reference to the table cell on checkbox click?
Aucun commentaire:
Enregistrer un commentaire