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
https://forums.phpfreaks.com/topic/147411-solved-text-colors-in-forms-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.