jQuery Validate - Enable validation for hidden fields

后端 未结 9 1920
忘了有多久
忘了有多久 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:57

    Just added ignore: [] in the specific page for the specific form, this solution worked for me.

    $("#form_name").validate({
            ignore: [],
            onkeyup: false,
            rules: {            
            },      
            highlight:false,
        });
    

提交回复
热议问题