|
Hi,
Actually what i am trying to say is that can i change the id of td? For example, i have 2 CSS style one called hideBox and showBox. So as the name indicates, one is basically to hide and show a box.
So maybe when the web page is loaded, "<td id='showBox'>" but after a click on a button i want "td" to use hideBox instead. Which means i want it to become like this - "<td id='showBox'>". Am i able to do this using javascript?
I tried using "documents.getElementById('showBox')" in hope of getting that <td> but could not. I also tried doing "documents.getElementsByTag('td')", but it does not work too.
Any suggestions?
|