shibulsky
asked on
Pre-fill text box in gray, remove on focus
Hi – I've seen html forms where some text boxes are pre-filled with text in a light gray color (to make clear it's an example). The example text disappears on focus (alternatively the entire text becomes marked on focus so it disappears once the user types something) and the user types in text, which appears in black.
Any idea how to do this?
Thanks
Any idea how to do this?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, that's right. Use the code, but use a different color than grey.
ASKER
Thanks for you help,
/t
/t