简体   繁体   English

jQuery Validate插件仅应用规则,包括jquery.validate.min文件

[英]Jquery Validate Plugin is applying rules only including jquery.validate.min file

I am getting the validation errors in all my forms and I have not even applied the $('form').validate() method to any form. 我在所有表单中都收到验证错误,甚至没有将$('form').validate()方法应用于任何表单。

I understand that after the document is loaded, I have to apply the validate() method on the form that I want to apply the validation functionality, but in this case, I am only including the plugin files, and the validations are been applied on all my forms. 我了解到,在加载文档后,我必须在要应用验证功能的表单上应用validate()方法,但是在这种情况下,我仅包含插件文件,并且验证已应用于我所有的表格。

Can anybody help me to solve this? 有人可以帮我解决这个问题吗?

Regards! 问候! (And sorry about my english) (对不起我的英语)

Please be more details about the issue.... Which version you are using and provide dummy code will better for understanding. 请提供有关该问题的更多详细信息。...您正在使用哪个版本并提供虚拟代码将更好地理解。

Have a look on the below point may be help you: You must have added attributes to the form inputs like "required",'numbers'...etc 看看以下几点可能对您有帮助:您必须在表单输入中添加了属性,例如“ required”,“ numbers” ...等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM