<TR onmouseover="this.bgColor='#FFFF99'" onmouseout="this.bgColor='#FFFFFF'" onClick="bgColor='yellow';return false">
I have the above code in a row of a table. It works fine, but I want it, when clicked, to remember that color until another row in the table is clicked. I know why my code isn't working, it's the onMouseOver redoing the color.
Can anyone help me or point me in the right direction? Do I need to use a script of some sort?
I have the above code in a row of a table. It works fine, but I want it, when clicked, to remember that color until another row in the table is clicked. I know why my code isn't working, it's the onMouseOver redoing the color.
Can anyone help me or point me in the right direction? Do I need to use a script of some sort?