I want to create a text area which is grey and read-only,then user can't change it in a form. I know how to make it read-only, but how to make it grey? background?
jianbo
<input type="text" value="Some Value" disabled> DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
Thanks, Deziner and y2k1981:
I tried both. Deziner's method change the font color to grey. While y2k1981's method has some problem. I change like this, then it works.
stylesheet:
input#anyid {background color:#C0C0C0}
form:
<input id="anyid" .... READONLY>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.