Disabled input text color change in IE 7.
843844Mar 3 2009 — edited Mar 4 2009I want to change the text color of an input text when disabled.
<style>
input.disabled{
color:red;
border:0px;
background-color:transparent;
}
</style>
<h:inputText value="Testing disabled field" disabled="true" styleClass="disabled"/>
It works fine in Firefox and Safari but not in IE7. I tried even hardcoding the style i.e,
<h:inputText value="Testing disabled field" disabled="true" styleClass="disabled" style="color:yellow;"/>
but yet the text is greyed, is there anyway i can do this ???
I don't want to use the readonly attribute. Is this a bug ?? Is this fixed in IE 8 ??