Link to home
Start Free TrialLog in
Avatar of MissJones
MissJones

asked on

Onclick change of a cell background color

I'd like to change the background of a cell color from white to blue (#000080) by onclick. How do I refer to the specific cell? The table data is dynamic.

thnx
MissJones
Avatar of son_robin
son_robin

specify an id to the table.
You can access as,
tableName.rows(rowNum).cells(cellNo).style.backgrounColor = "#000080"



ASKER CERTIFIED SOLUTION
Avatar of son_robin
son_robin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MissJones

ASKER

That was great thnx.
you made my day :)