Avatar of aarch1
aarch1

asked on 

document.getElementById(id).className does not work in firefox

Hi All,

I have a html page with inline css and javascript as below which sets the column border color when a image on the row is clicked(onclick="bod()"). It works fine in IE but in firebox.

.abc {border-right: 2px solid blue; border-top: 2px solid blue; border-bottom: 2px solid blue;}

 function bod() {
      document.getElementById("rows1").className = "abc";
}
....
<td id="rows1">ZZZ</td>
...

Thanks for you help.
Web BrowsersCSSJavaScript

Avatar of undefined
Last Comment
aarch1

8/22/2022 - Mon