Change font color of a disabled input

M

Martix

I disabled the some input boxes because I don't want the user to
change the values because it's more for show.

I noticed that when the input box is disabled the text changes gray.
Is it possible to change that so that it stay the same color as normal
text.

There must be a default value I can change.
 
J

Jukka K. Korpela

Scripsit Martix:
I disabled the some input boxes because I don't want the user to
change the values because it's more for show.

Stop doing so. Present the values as normal content. Problem solved.
I noticed that when the input box is disabled the text changes gray.

That may happen indeed. It depends on the browser.
Is it possible to change that so that it stay the same color as normal
text.

Perhaps. Probably not, since browsers often use built-in routines for
rendering form fields.
There must be a default value I can change.

You're quite an optimist!
 
M

Martix

I guess I should have looked a little farther.

There's a readonly property that makes it so user can't change the
data and doesn't change the font color.
 
A

Adrienne Boswell

I guess I should have looked a little farther.

There's a readonly property that makes it so user can't change the
data and doesn't change the font color.

Be aware that readonly properties can be changed by the browser as well.
Make sure you state something on the page for the user, and definately
check server site.
 
D

David Dorward

Martix said:
There's a readonly property that makes it so user can't change the
data and doesn't change the font color.

So its something that invites the user to change it, and then doesn't let
them. Well, that's not going to confuse or annoy anybody ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top