afridy
1
Hai folks,
function ChangeFontCol($id){
document.getElementById($id).style.color="black";
document.getElementById($id).style.fontStyle="normal";
document.getElementById($id).value="";
}
i am trying to change the italic font in a text box to normal using above js.
the fontStyle=“normal” does not working :mad:
other two are works fine.
It seems to work for me. What browsers are you testing in? Is there a live example?
Also, what is the last line doing? I didn’t know element nodes had a “value” attribute, and I can’t tell what it’s modifying.
afridy
3
i use firefox 3.6 
ill pm you a the live example…
afridy
4
For some reason, now i see it works 