Input watermark 介绍
This plugin allows you to create a text that’s only displayed when there no
text on the textBox and disappears when you focus on it.
This watermark is a little bit different from others I’ve seen, that’s why I’m
posting it here. I created this plugin because I faced the problem of creating
a watermark for a password field. ObvIoUsly (or not), all the watermarks that
I tried added the watermark text to the field itself, so the text was dotted!
Just like a password field should be… Well, that’s why this plugin is
different, you can use it even in password fields.
An array with options specifying two properties can be passed to the function.
The two properties are the watermarkText and watermarcssClass.
Then you just call the function like this:
$('.someSelector').watermark({watermarkText: 'Heey', watermarkCssClass:
'someCSS'})
Input watermark 官网
http://plugins.jquery.com/project/jWatermark
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。