Try adding a separate class to all of your checkboxes that are in the group and then do this
if( $$('.groupchecks:checked').length == 0 ) { //no checked checkboxes { Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Sun, Mar 31, 2013 at 8:30 AM, Phil Petree <phil.pet...@gmail.com> wrote: > Happy Easter! > > I have an array of checkboxes on a form (about 15 of them) arranged in > rows like this: > <tr><td><input type='checkbox' name='kitcat[]' > ...></td><td>name</td><td>description</td></tr> > > What I have been trying to use is this: > $("input:checkbox[name=kitcat]:checked").each(function() { > // if one is checked, we validated > return true; > }); > > What I'm getting is an error saying: Unable to get value of the property > 'each': object is null or undefined > > What's the trick to this? > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to prototype-scriptaculous+unsubscr...@googlegroups.com. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > Visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.