tsl

Remove Value onFocus in Input Box

By Head Lounger • March 14th, 2010 • JS Tags:

A nice touch to any text box on your site, is to easily remove the default text on the users “click” of that text box (’search…’). You can add the line of code directly to your input box. It has come in handy many times in building out web pages.

Example:


<form> <input name="name" type="text" value="Search..." />
</form>

There you go. Simple and adds a touch of ease to any site.

Cheers!~

 

Leave a Reply

You must be logged in to post a comment.