I\'m using the jQuery validation plugin to validate a form, and I\'d like to remove the validation and submit the form if a certain link is clicked.
I am submitting
You can also use the public "rules" function in this way:
$('input, select, textarea').each(function() {
$(this).rules('remove');
});
That's what I'm using ;)
$("#formName").validate().settings.ignore = "*";
Refer : https://github.com/jzaefferer/jquery-validation/issues/725
For all the tags input of form:
$('#myform').validate().settings.ignore = '.valid';
$('input').addClass('valid');
It works for me.
Trigger the DOM submit method to skip the validation:
$("#listing")[0].submit();