jQuery Validate - Enable validation for hidden fields

后端 未结 9 1763
忘了有多久
忘了有多久 2020-11-21 22:27

In the new version of jQuery validation plugin 1.9 by default validation of hidden fields ignored. I\'m using CKEditor for textarea input field and it hides the field and re

9条回答
  •  逝去的感伤
    2020-11-21 22:58

    This worked for me, within an ASP.NET MVC3 site where I'd left the framework to setup unobtrusive validation etc., in case it's useful to anyone:

    $("form").data("validator").settings.ignore = "";
    

提交回复
热议问题