I have a form with 2 different group of check boxes that are all required to have different names. The type of validation I need is that the user must select at least one option from Group 1 and at least one option from Group 2 before the form allows them to submit. I'm sure there is some way to do this in JQuery or JavaScript but I have little to none experience in both and most of what I have found online requires the name attribute to be the same which I can't have.
<form id="form1" action method="post">
//Group 1 needs to have at least one option selected
<input class="check1" type="checkbox" id="Dan_Murphys" name="Dan_Murphys"/>
<input class="check1" type="checkbox" id="BWS" name="BWS" />
<input class="check1" type="checkbox" id="First_Choice" name="First_Choice"/>
//Group 2 needs to have at least one option selected
<input class="check2" type="checkbox" id="Apple" name="Apple"/>
<input class="check2" type="checkbox" id="Bread" name="Bread" />
<input class="check2" type="checkbox" id="Water" name="Water"/>
<input type="submit" name="SUBMIT" value="Submit">
</form>