资 源 简 介
jQuery ghosttext is a simple, lightweight "ghost text" implementation for textfields, textareas, editable divs, and anything that is editable.
It displays the Ghost-Text on the fields, when they are empty and unfocused.
When the user clicks or tabs into the field, the Ghost-Text disappears.
When the field looses focus or user tabs out and the field is still empty, the Ghost-Text reappears.
This plugin uses the fields" title attributes to control the ghost text field. You can pass a custom Ghost-Text color.
Usage note
$().ghosttext([shadow color:optional]);
eg.$("input[type=text]").ghosttext();