tfreeman2004
Technical User
Hi everybody, I have several groups of checkboxes with each group containing 3-14 check boxes, now I need to go through and find whether more than 3 boxes are checked in each group, the way I have this written I dont believe is the best way, I have given each box within its "group" a special name like in group one the boxes are labeled grpone1,grpone2...ect, I thought I would go through and check each box by name like
if (document.form1.grpone1==checked) ect..
all the while adding to a total for that group, is there an easier way, a way I could name all the boxes in the first group "grpone" and cycle through them to check for how many are checked or does each box need its own name. Im just learning javascript, I bought o'reilly's pocket ref yesterday and its great but I still need guidance as to strategy and I know some of you trench hardened vets can help me by suggesting a better approach, thanks in advance.
if (document.form1.grpone1==checked) ect..
all the while adding to a total for that group, is there an easier way, a way I could name all the boxes in the first group "grpone" and cycle through them to check for how many are checked or does each box need its own name. Im just learning javascript, I bought o'reilly's pocket ref yesterday and its great but I still need guidance as to strategy and I know some of you trench hardened vets can help me by suggesting a better approach, thanks in advance.