I have a table that has X rows and 5 columns and I am looking to change the bg colour of the whole row when the mouse goes over a cell.
At the moment I can change the colour of each cell individually with:
<td onMouseOver="this.style.backgroundColor='#d7d7d7';">
and I have tried it with <tr onMouseOver="this.style.backgroundColor='#d7d7d7';"> but this does not seem to work.
Is there a way?
Thanks!
At the moment I can change the colour of each cell individually with:
<td onMouseOver="this.style.backgroundColor='#d7d7d7';">
and I have tried it with <tr onMouseOver="this.style.backgroundColor='#d7d7d7';"> but this does not seem to work.
Is there a way?
Thanks!
Comment