Input Placeholder 介绍
This plugin extends the jQuery() class with .placehold() method, which is
effective for text inputs and treats the default value those inputs have in
HTML markup as a placehold value.
When user focuses an input field, its placehold value has to be cleared out,
but it returns back, if user leaves the field having put nothing in there.
Additionally, my method can add a specified class to active and inactive
fields separately, enabling you to style and access placeholded and active
inputs.
Please, remember to validate the form on submit, additionally checking fields
for containing a placeholder, because placeholder strings are obviously
treated as normal input values by UAs. If a user submits such form, it might
even appear valid on the server side, filling your DB with bogus data
Input Placeholder 官网
http://plugins.jquery.com/project/inputplaceholder
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。