jquery validation submit handler 1

jquery validation submit handler

$("#myform").validate({
  submitHandler: function(form) {
    $(form).ajaxSubmit();
  }
});

Here is what the above code is Doing:
1. The first line is the jQuery library.
2. The second line is the jQuery Validation plugin.
3. The third line is the jQuery Form plugin.
4. The fourth line is the jQuery Form plugin’s ajaxForm method.
5. The fifth line is the jQuery Validate plugin’s validate method.
6. The sixth line is the jQuery Validate plugin’s submitHandler method.
7. The seventh line is the jQuery Form plugin’s ajaxSubmit method.

Similar Posts