I have a form with two sets of checkboxes in the same form (unavoidable, client request).
I need to limit the number of boxes checked, in EACH set, to two.
The IDs of checkbox set #1 are: PR2a,PR2b,PR2c,PR2d,PR2e,PR2f,PR2g,PR2h,PR2i
The IDs of checkbox set #1 are: PR3a,PR3b,PR3c,PR3d,PR3e,PR3f,PR3g,PR3h,PR3i
if the first set has more than two boxes checked
if the second set has more than two boxes checked
A separate function for each would be fine.
the ID of my form is "frm1", and my form calls the function(s) with the statement onclick="return checkit(this.form)"