After Show Modal Window Jquery Validation Plugin Doesn't Work
I have a problem with jQuery Validation Plugin. I used ASP.NET MVC with Entity Framework. The project has a lot of libraries and it's hard to understand the problem and find answer
Solution 1:
I think that when the specyficNutSearch script alters the DOM the validation handlers are getting removed.
My solution is to change clear method so it will refresh validation handlers:
functionclear() {
$("#result-table").html("");
$(".modal input").val("");
$(".pager").remove();
//add thisvar $form = $("#search-entry-form form");
$form.removeData("validator").removeData("unobtrusiveValidation");
$.validator.unobtrusive.parse($form);
}
Post a Comment for "After Show Modal Window Jquery Validation Plugin Doesn't Work"