Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Disabled input text color change in IE 7.

843844Mar 3 2009 — edited Mar 4 2009
I 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 ??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2009
Added on Mar 3 2009
4 comments
970 views