jQuery.CoolInput

jQuery.CoolInput
 点击下载

CoolInput is a simple plugin, inspired by Remy Sharp's that basically creates default text for input boxes.

The default text is derived from the input's title attribute by default and is displayed grayed out in the content area and disappears when the input gains focus and re-appears if no changes are made appears when it loses focus.

Customization options include:

changing the blurred style

submitting or not the default text in the case of a blank submit

adding an optional style to the input box (useful for those spotlight search icons)

New! Use any attribute to determine default-text, no longer limited to title attribute

Newer! Fixed a bug with the "clear hint on submit" feature, where if the inputted text was exactly the same as the hint it would not submit

转载请注明:代码家园 » jQuery.CoolInput

评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)