1$("form").data("unobtrusiveValidation", null);
2$("form").data("validator", null);
3$.validator.unobtrusive.parse($("form"));
4
1$(document).ready(function () {
2 rebindvalidators();
3});
4
5function rebindvalidators() {
6 var $form = $("#id-of-form");
7 $form.unbind();
8 $form.data("validator", null);
9 $.validator.unobtrusive.parse($form);
10 $form.validate($form.data("unobtrusiveValidation").options);
11}
12