jQuery表单验证插件 jQuery.validity
在线演示
jQuery.validity 是一个优雅的、功能强大的jQuery插件,用来实现表单的数据验证,无需服务器端支持。
代码:
<!DOCTYPE html><html><head> <title>Example Time!</title> <link rel="Stylesheet" href="jquery.validity.css" /> <script src="jquery-1.6.2.min.js"></script> <script src="jquery.validity.min.js"></script> <script> $(function() { $("form").validity(function() { $("#quantity") .require() .match("number"); }); }); </script></head><body> <form method="get" action=""> <input type="text" id="quantity" /> <br /> <input type="submit" /> </form></body></html>
jQuery.validity 是一个优雅的、功能强大的jQuery插件,用来实现表单的数据验证,无需服务器端支持。
代码:
<!DOCTYPE html><html><head> <title>Example Time!</title> <link rel="Stylesheet" href="jquery.validity.css" /> <script src="jquery-1.6.2.min.js"></script> <script src="jquery.validity.min.js"></script> <script> $(function() { $("form").validity(function() { $("#quantity") .require() .match("number"); }); }); </script></head><body> <form method="get" action=""> <input type="text" id="quantity" /> <br /> <input type="submit" /> </form></body></html>
【jQuery表单验证插件 jQuery.validity】相关文章
1. jQuery表单验证插件 jQuery.validity
10. Velocity – 另外一款加速的 jQuery 动画插件
本文来源:https://www.51html5.com/a1216.html
﹝jQuery表单验证插件 jQuery.validity﹞相关内容
- 验证HTML的5个原因和5个资源
- 提升用户体验的最佳免费 jQuery 表单插件
- jQuery 浮动标签插件,帮助你提升表单用户体验
- 6 个基于 jQuery 的表单向导插件推荐
- 15 款优化表单的 jQuery 插件
- 提升用户体验的最佳免费 jQuery 表单插件
- jQuery 浮动标签插件,帮助你提升表单用户体验
- TypeScript 1.4 现已在 GitHub 提供下载
- TypeScript 1.5 Alpha 发布,微软脚本语言
- 超实用!可视化CSS3动画生成神器Stylie