Text Field's Default Text

To show default text on a text field, that will be replaced when you type in that field...
<input type="text" onblur="if(this.value=='')this.value='Enter your Name'" onfocus="if(this.value=='Enter your Name')this.value=''" value="Enter your Name" name="" class="text">
Example:
Name:

Comments

Popular posts from this blog

How to Reset Root Password in Drupal 7 with phpMyAdmin

Drupal - Hiding field group and its Children