I am trying to simulate the appearance of disabled Firefox text input: textarea and input text.
The only browser compatibility I have to worry about is Internet Explorer 8. I don't have to worry about anything before (Intranet)
Internet Explorer does not allow you to change the text color of disabled test input. This allows you to change the background color, but the gray text on the gray background color was fuzzy.
I have an input field and a text area declared as follows:
<input name="Count" id="Count" onfocus="this.blur()" type="text" readOnly="readonly" value="0"/> <textarea name="Notes" id="Notes" style="width: 100%;" onfocus="this.blur()" rows="10" cols="20" readOnly="readonly"/>
I have the following styles applied through CSS:
input[readonly], textarea[readonly] { color:black !important; background-color: threedface !important; }
Visually, this works great in both Firefox and IE. However, IE still allows the cursor to enter a text area or text field. What am I missing?
Addition
By cursor, I mean the keyboard cursor, for example, when you enter the answer here.
Perhaps my problem is better stated, as the user can still click on the text area and display the keyboard cursor. It looks like the blinking cursor is quickly disappearing.
source share