jQuery validation with checkboxes problem with 2 sections
jQuery validation with checkboxes problem.
I have a form that has two headings:
The issue: Under the "Heading 1", one option must be selected. Under "Heading 2" one option must be selected.
<input type="checkbox" id="commjoin" name="commjoin"/> THROUGH <input type="checkbox" id="commjoin11" name="commjoin11"/>is under "Heading 1".
Heading 1
checkbox
checkbox
checkbox
checkbox
checkbox
checkbox
<input type="checkbox" id="commjoin12" name="commjoin12"/> THROUGH <input type="checkbox" id="commjoin50" name="commjoin50"/>is under "Heading 1".
Heading 2
checkbox
checkbox
checkbox
checkbox
checkbox
checkbox
This needs to be check when the "Next" button is clicked <input type="submit" name="button" onclick="return ckFormJ(5); " runat=server id="button" value="Next >>">
To reiterate, under the "Heading 1", one option must be selected. Under "Heading 2" one option must be selected.
I could see how to see if one box is checked maybe but to validate if at least one box is checked under each heading is a bit more difficult. How could I go about getting this to work?
Thank You.