Friday, July 23, 2010

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:

No comments:

Post a Comment