JQuery Validate array all verification problems, jqueryvalidate
Jquery validate is not efficient, it has comprehensive functions, simple extension, and easy to use. But it cannot cover all. The following is an example
There are multiple names in html [], and each parameter must be verified to be null. In this case, required: true is used directly, not all of them are verified, as long as there is a value in this array, it can be passed.
// If (this. name in rulesCache |! Validator. objectLength ($ (this). rules () {// return false ;//}
Modify jquery. validate. js and find the above Code. Just comment it out.
There is also a problem with this change. If you want to use the original function, that is, the array, as long as one verification passes, it will not be available. In this case, you can use the jquery validate addmethod method. In this way, the problem is solved.
The above section describes all the verification questions about the jQuery Validate array provided by Alibaba Cloud. I hope it will be helpful to you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!