...

View Full Version : Change TABLE <TD> bgcolor onClick Link



isaaclloyd
06-03-2005, 07:05 AM
What I am trying to do is change the <TD NAME="ME">HI</TD> bgcolor when I click on a link somewhere other then inside the table. Any comments or suggestions would greatly be appreciated. Thanks.


~Isaac~

_Aerospace_Eng_
06-03-2005, 08:22 AM
<table>
<tr>
<td id="me">The background color of this cell should change color on click</td>
</tr>
</table>
<a href="#" onclick="document.getElementById('me').style.background='#000099';return false">Change background color of cell</a>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum