In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "jQuery array all verification problems how to solve", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "jQuery array all verification problems how to solve" it!
There are multiple name [] in html, and each parameter needs to be verified to be empty. In this case, you cannot verify all of them by using required:true directly. As long as there is a value in this array, you can pass it.
/ / if (this.name in rulesCache | |! validator.objectLength ($(this) .rules ()) {/ / return false; / /}
Modify jquery.validate.js to find the above code and comment it out.
This change is also a problem, if you want to use the original function, that is, the array, as long as a verification is passed, there is no way to use it. At this point, you can use the jquery validate addmethod method. In this way, the problem will be solved.
Thank you for your reading, the above is the content of "how to solve the whole verification problem of jQuery array". After the study of this article, I believe you have a deeper understanding of how to solve the problem of all verification of jQuery array, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.