I am using the jquery validate plugin to validate form input. The problem I have run into is that I have a radio button group that hides and shows different fields based on the radio button selected.
How can I validate the subset of fields that are hidden and shown depending on what radio button option is selected.
Thanks
Use the
dependsrule:This example sets the
contactfield to only be required is the#myCheckboxfield is checked.