Too Much Recursion jQuery Validation

Leave a Comment
When you validate your HTML form using jQuery validation plugin, while submitting your form browser throughs Error : Too Much Recursion. It creates following two problems.

1. Creates the form submission delay.
2. And makes the browser to hang while submitting the html form.

It is all because during submitting the form jQuery validation plugin submits the form mutiple times if you are not disable your submit button. So please disable your submit button in the submitHandler() of jQuery validation plugin like in the below script.

submitHandler : function(form) {
    $('#password_btn').attr('disabled','disabled');
    form.submit();
}


Please refer some of the validation  i had done in the following tutorial.

User registration and Login Using PHP5, MySQLi, jQuery and Bootstrap

0 comments:

Post a Comment