Jump to content

[SOLVED] text colors in forms question


zwkle

Recommended Posts

Hi,

 

I have this line which nearly does what I want:

 

<input type='text' name='text' style='width:505px; height:190px; color:rgb(160,160,160);' value=' Max. 500 characters' onClick="this.value=''">

 

This gives me a text box with "Max. 500 characters" in the box which disappears when the user clicks on the box, and where "Max. 500 characters" is colored light-grey. When the user then types something into the box, I want them to be typing in black, rather than light-grey. Not sure how to do this. Can anyone help?

 

Many thanks,

Andrew

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.