Change font color of a disabled input

Discussion in 'HTML' started by Martix, Mar 30, 2007.

  1. Martix

    Martix Guest

    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

    There must be a default value I can change.
    Martix, Mar 30, 2007
    1. Advertisements

  2. Scripsit Martix:
    Stop doing so. Present the values as normal content. Problem solved.
    That may happen indeed. It depends on the browser.
    Perhaps. Probably not, since browsers often use built-in routines for
    rendering form fields.
    You're quite an optimist!
    Jukka K. Korpela, Mar 30, 2007
    1. Advertisements

  3. Martix

    Martix Guest

    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.
    Martix, Mar 30, 2007
  4. 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.
    Adrienne Boswell, Mar 31, 2007
  5. 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 ...
    David Dorward, Mar 31, 2007
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.