Want create site? Find Free WordPress Themes and plugins.

In this article I will show how to add or remove textbox default value on focus and blur using JQuery. Add below code within your form input tags and replace my default values with the verbage of your choice.

The Code Snippet:

<input type="text" 
onblur="if (this.value == '') {this.value = 'Looking for something?';}" 
onfocus="if (this.value == 'Looking for something?') {this.value = '';}" 
value="Looking for something?"/>

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.

Did you find apk for android? You can find new Free Android Games and apps.

Posted by Abhay Kumar

I am Abhay Kumar from New Delhi (India). I'm working as a Web Developer from last 3+ years. You can follow me on Twitter, Facebook or Google+.