A very nice jQuery plugin for text input hint / helper text…
June 24th, 2011
No comments
While looking for a jQuery plugin that would let me put some default text in a field and then remove it when a user focuses and before submit is clicked, I stumbled across this plugin: labelOver
You can view an example here.
The advantage over this plugin is two fold. First, it doesn’t actually ever put text into the input box, rather it positions the inputs Label tag over the field… This is good for several reasons.
- The label tag is used by screen readers, etc…
- It works fine if javascript and css are off (not a big deal but still a good thing).
- It lets you style the label with other html tags (like strong, etc…)