Skip to content


Subversion checkout URL

You can clone with
Download ZIP
unobtrusive method to add labels to form inputs that hide on focus and show on blur (also supports Password inputs)
Pull request Compare This branch is 1 commit ahead of richardscarrott:master.
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Given a form the plugin will find all the fields and store their associated text using jQuery's .data() method.

This means it requires inputs to have an 'id' and an associated label using the 'for' attribute, e.g.

<form action="#" method="post">
    <label for="example">Example Label</label>
    <input type="text" id="example" />

It can then be initiated like this:


The method also accepts a filter parameter in case you want to limit the in-field labels to specific elements or :not(specific elements):


More documentation can be found here

Something went wrong with that request. Please try again.