
I’m trying to make some input fields that I would like to work like Twitter’s registration form.
- On focus the value text becomes light grey.
- When you start typing the light grey default value disappears completely and the user-written text becomes #000000.
- If you don’t write anything and go out of focus the default text appears again.
How to achieve with jQuery?
Take a look at this sample.
How to specify some watermark text for a text input element ?