vendredi 25 mars 2016

jQuery validation with checkboxes scenario with 2 sections

New to Stackoverflow; I had a question about a confusing checkbox validation.

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.

THROUGH is under "Heading 1". Heading 1 checkbox checkbox checkbox checkbox checkbox checkbox

THROUGH is under "Heading 1". Heading 2 checkbox checkbox checkbox checkbox checkbox checkbox

This needs to be check when the "Next" button is clicked >">

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?

I had an image but need more posts first as this is number 1 :)

Thank You.




Aucun commentaire:

Enregistrer un commentaire