I have a form with multiple fields that I\'m validating (some with methods added for custom validation) with Jörn Zaeffere\'s excellent jQuery Validation plugin. How do you
$("form").validate().settings.ignore = "*";
Or
$("form").validate().cancelSubmit = true;
But without success in a custom required validator. For call a submit dynamically, i have created a fake hidden submit button with this code:
var btn = form.children('input.cancel.fakeSubmitFormButton');
if (btn.length === 0) {
btn = $('');
form.append(btn);
}
btn.click();
Now skip the validation correctly :)