I would like to insert a descriptive text inside an input element that disappers when the user click on it.
I know it is a very common trick, but I do not know how to do that..
What is the simplest/better solution?
If you're using HTML5, you can use the placeholder
attribute.
<input type="text" name="user" placeholder="Username">