How do I change <tr> bgcolor with Javascript using a checkbox?

NeersEcorry

New Member
I have this html\[code\]<table border="1"> <tr> <td> <input type="checkbox"> </td> <td> Hello </td> <td> my friend! </td> </tr> <tr> <td> <input type="checkbox"> </td> <td> ... </td> <td> ... </td> </tr> ...</table>\[/code\]What do I need to do if I want to change my \[code\]<tr>\[/code\] bgcolor when the checkbox is activated? I guess I will need to do something with \[code\]onclick()\[/code\] maybe.EDIT: What I need is that the checkbox should modify only his current row.
 
Back
Top