[英]Jquery Validate - List of Classes
This may be a very stupid question but i am looking for a list of the inline validation rules for the jquery form validator. 这可能是一个非常愚蠢的问题,但我正在寻找jquery表单验证器的内联验证规则列表。
I know that i can find the js functions here : 我知道我可以在这里找到js函数 :
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. 谢谢。
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 your input
: 至于如何使用它们,只需将它们添加到class
的属性input
:
<input type='text' class='required creditcard' name='credit-card' />
You'll have to define other rules in the object you pass to validate
. 您必须在传递给validate
的对象中定义其他规则。
Most probably you are looking for this 很可能你正在寻找这个
http://elegantcode.com/wp-content/uploads/2010/03/Jquery-Validator-Cheat-sheet.pdf 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 http://marketblog.envato.com/resources/extensive-collection-cheatsheets-web-designers
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.