I am trying to add a class to an element create using .createElement.
var x = document.createElement("td");
x.className = "some_class_name";
tr1.appendChild(x);
The class is applied in MSIE, but not in mozilla. Is there a way to do this in mozilla? Do I need to create an id?
Thanks.
var x = document.createElement("td");
x.className = "some_class_name";
tr1.appendChild(x);
The class is applied in MSIE, but not in mozilla. Is there a way to do this in mozilla? Do I need to create an id?
Thanks.