I want to change the background color of a table cell when the radio button in the cell is pressed.
<table> <tr> <td align="center"> <input type="radio" value="foo" onclick="this.parentElement.style.background-color='red';" /> </td> </tr> </table>
How to get a link to the parent element?
javascript jquery html
Achaius Mar 16 '10 at 12:38 2010-03-16 12:38
source share