Tuesday, June 1, 2010

jQuery Textbox Hint

It's been a while, but I'm back to share a quick jQuery plugin I created for a project at work. It's a simple textbox hint plugin I built after searching for one that fit my needs. While there are quite a few very nice solutions, most that I found either over-complicated things or simply lacked the one very basic thing I needed: the ability to apply a given CSS class to the textbox I need hinted.

Here's the CSS and HTML:

And the JavaScript:
$(document).ready(function() {
$("form#search-form input.hint").hint();

Demo, docs, and tests are available in the archive.

Download: jquery_hint.tar.gz
MD5 Sum: a9cba941898e6e3c8427fee444333b71
SHA1 Sum: 03ba6da74b2e0db37572e1cd1b744da0ea8da72b

1 comment: