-
1. Re: Disabled input text color change
pbaker01 Jul 19, 2013 1:30 AM (in response to kushtcs)1 of 1 people found this helpfulDid you consider using readonly="true" instead if disabled?
With readonly you will be able to see the text just as if it were editable and it is also selectable.
From a UI design perspective:
- I use disabled when the component is not valid for a particular set of conditions but I still want it as a placeholder.
- I use readonly when the field is valid but due to authorization or some other factor, the user is unable to update.
If you still want to change the font color for a disabled field then have you tried the javascript tools in firefox, IE, and google.
With those you will be able find some alternatives. Also see thread:
http://stackoverflow.com/questions/1411044/how-to-change-color-of-disabled-html-controls-in-ie8-using-css -
2. Re: Disabled input text color change
bleathem Jul 29, 2013 5:36 PM (in response to pbaker01)1 of 1 people found this helpful@Paul Baker: good ideas!
@Kush Kumar: Have you tried setting the color via CSS attribute selectors:
http://www.w3schools.com/css/css_attribute_selectors.asp
Something like:
input[disabled=true] {
color: black;
}
-
3. Re: Disabled input text color change
kushtcs Jul 29, 2013 10:26 PM (in response to bleathem)Hi Paul
readonly idea dint work .
But keeping those attributes as disabled with below entry it worked .
@Brian
Thanks for your suggestion
input[type="text"]:disabled
{
color:black;
}
select:disabled
{
color:black;
}
Thaks Paul