教程集 www.jiaochengji.com
教程集 >  jQuery  >  jQuery 插件  >  正文 Input Placeholder

Input Placeholder

发布时间:2014-07-18   编辑:jiaochengji.com
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
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

您可能感兴趣的文章:
关于HTML5 input placeholder 的颜色修改
Input Placeholder
使用jQuery快速解决input中placeholder值在ie中无法支持的问题
placeholder jquery插件
css3常用伪类选择改变表单样式
基于jQuery的让非HTML5浏览器支持placeholder属性的代码
php登录判断账号密码是否正确
HTML5表单验证的解析
如何实现jquery回车登录效果
HTML5表单的属性有哪些?

[关闭]
~ ~