andreasnymark / reSetValue

Resets an input or an textarea when user focus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery.reSetValue.js

What does it do

Placeholder text for searchfields when placeholder-attribute (HTML5) is not available.

How to use

Simply add the plugin and then:

$('#search').reSetValue();

HTML:

<input type="text" id="search" value="Search here" />

About

Resets an input or an textarea when user focus.


Languages

Language:JavaScript 100.0%