autohelp
Sometimes it's important to tell the user what's expected of him. Especially when filling out a complicated form. This plugin uses the title attribute to display help in a separate DOM element.
Example
Focus on one of the form elements above.
Source code
/* jQuery autohelp Copyright Dylan Verheul <dylan@dyve.net>
* Licensed like jQuery, see http://docs.jquery.com/License
*/
$.fn.autohelp = function(t, o) {
t = $(t); o = o || {};
var h;
this.focus(function() { h = t.html(); (o.hide ? t.show() : t).html(this.title); })
.blur(function() { (o.hide ? t.hide() : t).html(h); });
return this;
}