Consider the form that are loaded via AJAX. After appending the form to the document I'm calling
$.validator.unobtrusive.parse($form);
and the client validation works like a charm. However there are some scenarios, when I need to change the validation settings, like ignore, so I call
$form.validate({
ignore: ''
});
$.validator.unobtrusive.parse($form); // and parse with new settings
In this case unobtrusive client validation just doesn't work. What could be the issue?
Edit
"Doesn't work" means, $form.valid() is always true.