Hi all
On my web page I have a 3 column table.
The first cell changes background color when mouseover event occurs.
Something like this :
This works fine.
Problem starts when I add more rows dynamically to the table using:
insertRow and insertCell
I can't get the added cells to change their color too.
I tried it like this:
Doesn't work.
Can anybody help ?
Thanks in advance
On my web page I have a 3 column table.
The first cell changes background color when mouseover event occurs.
Something like this :
Code:
<TR><TD onMouseOver="this.bgColor='#00CC00'" onMouseOut="this.bgColor='#F0FFF0'" >name</TD> <TD>number</TD> <TD>address</TD><TR>
Problem starts when I add more rows dynamically to the table using:
insertRow and insertCell
I can't get the added cells to change their color too.
I tried it like this:
Code:
row.cells[0].onmouseover="this.bgcolor='red'";
Can anybody help ?
Thanks in advance
Comment