Answers for "jquery.validate.unobtrusive dynamic content"

0

jquery.validate.unobtrusive dynamic content

$("form").data("unobtrusiveValidation", null);
$("form").data("validator", null);
$.validator.unobtrusive.parse($("form"));
Posted by: Guest on January-13-2021
0

jquery.validate.unobtrusive dynamic content

$(document).ready(function () { 
    rebindvalidators();
});

function rebindvalidators() {
    var $form = $("#id-of-form");
    $form.unbind();
    $form.data("validator", null);
    $.validator.unobtrusive.parse($form);
    $form.validate($form.data("unobtrusiveValidation").options);
}
Posted by: Guest on January-13-2021

Code answers related to "jquery.validate.unobtrusive dynamic content"

Code answers related to "Javascript"

Browse Popular Code Answers by Language