Thanks Josh, sorry for the confusion. I am actually using Jörns plugin for validation, so my question should have been:
How do I use Jörns Validation plugin to validate that a user has checked at least one box in a group of uniquely named checkboxes Thanks On Oct 25, 10:45 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > Can you put a class on the checkboxes? Then you can do: > > return $("input.myclass:checked").size(); > > -- Josh > > ----- Original Message ----- > From: "wattaka" <[EMAIL PROTECTED]> > To: "jQuery (English)" <jquery-en@googlegroups.com> > Sent: Thursday, October 25, 2007 12:34 PM > Subject: [jQuery] Validating checkboxes > > Hi all, > > how does one validate that a user checks at least one checkbox from a > group of checkboxes. I have seen the example on Jörns site, but the > example has the same names for all checkboxes, I cant have the same > name for all checkboxes due to the backend code. > > Thanks