Input watermark

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-12 18:58:48

软件介绍

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'})

本文地址:https://www.codercto.com/soft/d/23240.html

The Practice of Programming

The Practice of Programming

Brian W. Kernighan、Rob Pike / Addison-Wesley / 1999-2-14 / USD 49.99

With the same insight and authority that made their book The Unix Programming Environment a classic, Brian Kernighan and Rob Pike have written The Practice of Programming to help make individual progr......一起来看看 《The Practice of Programming》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

html转js在线工具
html转js在线工具

html转js在线工具