R
Richard Trahan
This code doesn't work:
document.getElementById("myid").style.backgroundColor = "#abcdef"
This should work in NN7.2 and IE6.0. What am I doing wrong?
"myid" refers to <input type="text" id="myid">, which gladly obeys
an internal style="background-color: #abcdef".
Also, I can't find any mention of a class property in the DOM; IOW,
document.getElementById("myid").class always crashes, yet class works in
the <input> tag. Is it not possible to dynamically change the class of
an element?
document.getElementById("myid").style.backgroundColor = "#abcdef"
This should work in NN7.2 and IE6.0. What am I doing wrong?
"myid" refers to <input type="text" id="myid">, which gladly obeys
an internal style="background-color: #abcdef".
Also, I can't find any mention of a class property in the DOM; IOW,
document.getElementById("myid").class always crashes, yet class works in
the <input> tag. Is it not possible to dynamically change the class of
an element?