how to change the color of the text that appears inside a disabled text box

can the text color of a disabled text box be changed to "RED" or any other color??
Who is Participating?
Siva Prasanna KumarConnect With a Mentor Principal Solutions ArchitectCommented:
I think the first suggestion in the below link suits your requirement but yet a good link to refer.

and also check
anumalasConnect With a Mentor Commented:

please refer the following question its very simple....
using CSS
muktajindalConnect With a Mentor Commented:
For textbox color change, you can define two separate classes for active and disabled textboxes in your CSS file. Create textboxes with the active class. Whenever you want to disable a textbox, just change the class associated with that textbox. You should get the desired results.
MeritorConnect With a Mentor Commented:
If you are using IE then its hard to set color for disabled text box but in Mozilla/Netscape you can write the following code:
input[disabled] {color:red!important;}

As in:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
<title> New Document </title>
<style type="text/css">
input {
color: green;
input[disabled] {color:red!important;}


<input type="text" disabled value="disabled"></input><br>
<input type="text" value="normal"></input>
All Courses

From novice to tech pro — start learning today.