Open azadhussain16 opened 5 years ago
Something like this
$.validate({
form : '#registration-form',
modules : 'security',
onSuccess : function($form) {
// send form with ajax
myAjaxFunc($form);
return false; // Will stop submission of the form
}
});
Ho can I prevent form submission if there is any invalid fields in the form I am submiting the form on submit by ajax.