Form Watermark
The Watermark plugin enables users to condense page layout by adding descriptive labels on top of the input or textarea fields when their value is empty. This plugin is built on the same concept as the Overlabel plugin, but does not require the labels and style to be placed on the page while adding other configuration options.
Features:
- Easily configured. Just add a watermark attribute to your element
- Requires no additional page markup
- Use a string or object to configure watermark
- Add custom css and classes to the label
- Works on password fields
- Works well with validation plugin
Examples:
input type=”password” watermark=”Enter Password”
input type=”password” watermark=”{html:’EnterPassword’,css:{color:’red’}}”
$([selector]).watermark(”Your watermark”)
$([selector]).watermark({html:”The text”,cls:’css class’,css:’{jQuery css object}’})
评论