jgTextHint

a jQuery plugin plugin by Joel Gascoigne

What is it?

jgTextHint is a jQuery plugin to enable you to show neat text hints on your text inputs, based on the initial value of the text box.

Demo

Usage

First, load jQuery and the plugin:

<script src="jquery.min.js" type="text/javascript"></script>
<script src="jquery.jgTextHint.js" type="text/javascript"></script>

Now, choose a set of elements to apply jgTextHint to:

$(document).ready(function(){
    $('input[type=text]').jgTextHint();
});

The above applies jgTextHint to all text input boxes on your page.

Download it

Grab the code at GitHub: http://github.com/joelg/jgTextHint

Licence

Dual licensed under the MIT and GPL licenses.