fONT cOLOR...

Discussion in 'ASP .Net' started by Nelson, Nov 9, 2004.

  1. Nelson

    Nelson Guest

    What is the syntax in Java Script to change the color of font in a text box?
    Thanks,
    Nelson
    Nelson, Nov 9, 2004
    #1
    1. Advertising

  2. Nelson

    Ian Suttle Guest

    Nelson,

    You will want to manipulate the text color using JavaScript's CSS
    manipulation. You can either change the class file associated with the
    control or you can change the font color directly. Try this out for
    example:

    whateverControl.style.color='#DDDDDD';
    Regards,
    Ian Suttle
    http://www.iansuttle.com
    Ian Suttle, Nov 9, 2004
    #2
    1. Advertising

  3. Nelson

    Nelson Guest

    Thanks for the answer.
    It is working fine now.
    Nelson

    "Ian Suttle" <> wrote in message
    news:...
    > Nelson,
    >
    > You will want to manipulate the text color using JavaScript's CSS
    > manipulation. You can either change the class file associated with the
    > control or you can change the font color directly. Try this out for
    > example:
    >
    > whateverControl.style.color='#DDDDDD';
    > Regards,
    > Ian Suttle
    > http://www.iansuttle.com
    >
    Nelson, Nov 9, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karl Hungus

    Font class, external font files question

    Karl Hungus, Feb 4, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    527
    Karl Hungus
    Feb 4, 2004
  2. =?Utf-8?B?Tmlja3k=?=
    Replies:
    2
    Views:
    710
    Matt Berther
    Feb 20, 2005
  3. Michael Glavitsch
    Replies:
    1
    Views:
    763
    Roedy Green
    Jul 15, 2003
  4. mttc
    Replies:
    2
    Views:
    2,391
    Roedy Green
    Jul 3, 2009
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    412
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page