Jquery Validate - 类列表
这可能是一个非常愚蠢的问题,但我正在寻找 jquery 表单验证器的内联验证规则列表。
我知道我可以在这里找到 js 函数:
但我正在寻找一个列出简单的内联类,如
电子邮件、网址、电话等,并学习如何使用它们。我只是在寻找一个简单的列表。谢谢。
This may be a very stupid question but i am looking for a list of the inline validation rules for the jquery form validator.
I know that i can find the js functions here:
but i am looking for a list of the simple inline classes like
email, url, phone, etc., and learn how to use them. I am just looking for a simple list. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看源代码,我相信这些是唯一可以通过添加类来使用的规则:
至于如何使用它们,只需将它们添加到您的
class
属性中即可。input
:您必须在传递给
validate
的对象中定义其他规则。Looking at the source, I believe these are the only rules that can be used simply by adding classes:
As for how to use them, just add them into the
class
attribute of yourinput
:You'll have to define other rules in the object you pass to
validate
.您很可能正在寻找这个
http:// /elegantcode.com/wp-content/uploads/2010/03/Jquery-Validator-Cheat-sheet.pdf
当我寻找相同的易于记住的验证插件列表时创建规则。 :)
更新:如果您喜欢将所有东西放在一起,也可以尝试以下操作:
http://marketblog.envato.com/resources/extective-collection-cheatsheets-web-designers
Most probably you are looking for this
http://elegantcode.com/wp-content/uploads/2010/03/Jquery-Validator-Cheat-sheet.pdf
Founded when I was looking for same easy to remember list of validation plugin rules. :)
Update: If you like to have all things together try this too:
http://marketblog.envato.com/resources/extensive-collection-cheatsheets-web-designers