I have a form with large set of fields that includes both read only and hidden fields. I want to enable validation for hidden field but disable validation for ready only fields
In the new version of jQuery validation plugin by the default validation of hidden fields are ignored. So to enable it I have to use :
$("form[name='Formname']").validate({
ignore: []
});
and it is working fine. But I need to ignore the validation for readonly fields and for that I need to use
$("form[name='Formname']").validate({
ignore: [readonly=readonly]
});
Even if i merge the two,it still doesn't work because than it only ignore readonly but doesn't apply vaildation on hidden field