unobtrusive validation not working with dynamic content

后端 未结 7 1705
一生所求
一生所求 2020-11-28 02:07

I\'m having problems trying to get the unobtrusive jquery validation to work with a partial view that is loaded dynamically through an AJAX call.

I\'ve been spending

7条回答
  •  遥遥无期
    2020-11-28 02:49

    test this:

    if ($.validator.unobtrusive != undefined) {
        $.validator.unobtrusive.parse("form");
    }
    

提交回复
热议问题