Consider formwhich are loaded via AJAX. After adding formto the document that I call
$.validator.unobtrusive.parse($form);
and customer check works like a charm. However, there are some scenarios when I need to change the verification settings, for example ignore, so I call
$form.validate({
ignore: ''
});
$.validator.unobtrusive.parse($form); // and parse with new settings
In this case, unobtrusive client verification simply does not work. What could be the problem?
Edit
"Doesn't work" means $form.valid()always true.
source
share