I have a form where the form elements are grouped in several divs.
Depending on user choices certain divs will display and others will have display:none.
I want some fields to be required but only when the surrounding div has the value display: block.
Another issue is that it is the div containing the fields that are hidden rather than the fields themselves, but made visible if the user checks a radio button.
In which case, you can see that the default validation selector is $.fn.validator.Constructor.INPUT_SELECTOR = ':input:not([type="hidden"], [type="submit"], [type="reset"], button)'
in which case you should be able to just add :hidden to that list. $.fn.validator.Constructor.INPUT_SELECTOR = ':input:not([type="hidden"], [type="submit"], [type="reset"], button, :hidden)'