Input Hint
Display input hints to users within a text input and remove them automatically
on focus/form submission. The hint text for each input can be supplied by
assigning it to the standard XHTML title attribute, or by supplying
a jQuery selector that, when evaluated in the context of some input element
(e.g. $(selector, inputElement)), matches an auxiliary element
containing the hint text.
Examples of both methods are given below:
Example using
title attribute:HTML:
<input type='text' name='forename' hint='Forename' />
JS:
$('*[title]').inputHint();
Example using auxiliary element:
HTML:
<input type='text' name='forename' />
<kbd>Enter your forename here</kbd>
JS:
$('input').inputHint({using: '+kbd'});