Jquery. Validate. js 1.7 bug

Source: Internet
Author: User

Found a major bug in jquery. Validate. js 1.7.

1 $ ('# reg_form'). Validate ({
2 submithandler: function (form ){
3 form. Submit ();
4 },
5 event: "Blur", // note this
6 rules :{
7 commendmen :{
8 required: True,
9 minlength: 1,
10 remote :{
11 URL: "url ",
12 type: "Get ",
13 Data :{
14 Email: function (){
15 return $ ("# commendmen"). Val ();
16}
17}
18}
19 },

Row 3, set, verification event is blur, in fact

When an error is entered in the text box for the first time and the Blur event is triggered, blur verification is normal and an error message is displayed.

At this point, when you click the text box and continue to enter the content, you will find that each onkeyup event triggers verification !!!!!!

If remote verification is required, this bug will put some pressure on the server.

The solution is not found yet. If any brother has a solution, please kindly advise!

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.