[jQuery] jquery validation plugin and hidden elements

[jQuery] jquery validation plugin and hidden elements


Hi,
I have been using a prototype form validation
http://tetlaw.id.au/view/javascript/really-easy-field-validation
but I now wish to go to jquery.
I can get it working but there is something i can't get to work and it
was the best feature of the prototype script mentione above.
I would like the validation script to exclude from the process any
hidden form field.
I set the validation rules as metatags with class="required"
the following works but still requires to validate hidden fields
    $("#commentForm").validate();
I have tried something like..
$("#commentForm").validate({ignore: "[@type=hidden]" });
but that does not work
Some fields are hidden because the parent div is set to display:none
when a checkbox is checked.
Any ideas?