Font style problem

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.

i use firefox 3.6 :slight_smile:
ill pm you a the live example…

For some reason, now i see it works :rolleyes: