error with the script
-
I have a problem as following: "I have a Asp.net webpage which has a html table control. Now I want to catch the event when users click on a cell of the table and change the background color of that cell. The html code of the cell: and the funtion is used to catch function ClickTable() { //alert("clicked it") document.getElementById("First").bgcolor = "#ff6600" } However, I met a error when I clicked on the cell. The reason of the error is originated from the command row "document.getElementById("First").bgcolor = "#ff6600" ". would you help me? Thanks a lot.
-
I have a problem as following: "I have a Asp.net webpage which has a html table control. Now I want to catch the event when users click on a cell of the table and change the background color of that cell. The html code of the cell: and the funtion is used to catch function ClickTable() { //alert("clicked it") document.getElementById("First").bgcolor = "#ff6600" } However, I met a error when I clicked on the cell. The reason of the error is originated from the command row "document.getElementById("First").bgcolor = "#ff6600" ". would you help me? Thanks a lot.