Wednesday, July 6, 2016

Allow validation of hidden elements, override the ignore and set it to empty string

To allow validation of hidden elements, override the ignore and set it to empty string:
$("#form1").validate({
    ignore: "",
    rules: {
        something: {
            number:true,
            min:1,
            required:true
        }
    }
});
Check this out : http://stackoverflow.com/questions/7952181/jquery-validation-plugin-validating-hidden-inputs-and-not-visible


No comments:

Post a Comment