Changing the bgcolor of table cells using onclick event
Posted on 2002-04-23
I guess I am not remembering what I thought I had filed away. I have two radio buttons, when one is clicked I want to change the color of the cell I clicked in green, when I select the other radio button, I want the green to turn white and the wite (from the other radio button) to turn red.
So picture a 2 x 2 table
IN the left cells I have some text
In the right cells I have a radio button.
On the onclick button I want to change the color of all 4 cells as described above. I can do the one cell onclick but cant seem to remember how to do more than one cell.