Form Watermark

联合创作 · 2023-10-02 15:42

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}’})
浏览 9
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报