Search This Blog

Tuesday, August 28, 2012

On-click and blur in the input text field

 Welcome to designers blog here i have posted how to  Clear text box using on-click and blur  in the input text field

Code:

<input type="text"  size="2" name="textfield" id="textfield" class="search_box" value="Search" onclick="if(this.value=='Search'){this.value=''}" onblur="if(this.value==''){this.value='Search'}" />

No comments:

Post a Comment

Validating to select in sequencial order using angular

    < input type = "checkbox" (change) = "handleSelectTaskItem($event, taskItem)" [checked] = " taskItem . i...