View Full Version : Change the background of an empty table cell when a link on other cell is clicked
Can anybody suggest as to how to go about when--
the background of an empty table cell has to be changed when a hyperlink on another table cell is clicked.
The background has to be changed either by using colour/image or class .
12-18-2005, 01:38 AM
Try something like this:
<td id="empty" width="100">
<td width="100"><a href="#" onclick="document.getElementById('empty').style.backgroundColor = 'red';">Click the link</a></td></tr></table>
When you click the link the background of the other table cell should change to red.
12-25-2005, 10:38 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.