I notice that on some websites, such as http://academia.edu/ , the registration form has its own "place-holder" in the text input field. Thus, there is no shortcut in the text box, but there is rather a small word "Name" in the text box.
When using Firebug for research, I see the following code:
<input class="standard_text magic-default magic-default-on" id="user_first_name" name="user[first_name]" size="30" type="text" value="First Name">
It seems like some kind of “magical” javascript is happening behind the scene. But since I am not familiar with javascript debugging yet, I cannot determine how they do it.
Does anyone know how to produce this effect?
source share