The following function is called when a onclick event is triggered from within a <TD> tag (table cell). This function simply changes the backgorund color when the table cell is clicked.
function theclick(obj)
{
var tTab=document.getElementById('thetable')
obj.style.backgroundColor = "#EDE9C6";
}
Can someone help me with a method that checks to see if a table cell has been previously clicked and if there has been a previously clicked cell, then change it back to white?
Thanks for any help.
function theclick(obj)
{
var tTab=document.getElementById('thetable')
obj.style.backgroundColor = "#EDE9C6";
}
Can someone help me with a method that checks to see if a table cell has been previously clicked and if there has been a previously clicked cell, then change it back to white?
Thanks for any help.