The plugin assumes that a group of checkboxes has a single name... The
groups option might help to group the messages back together into one,
but you'll still have to specify rules for each input.

Jörn

On Wed, Jan 21, 2009 at 1:07 PM, kat...@googlemail.com
<k.bou...@nhm.ac.uk> wrote:
>
> I am using a CMS (Drupal) and using jquery validate to validate a
> form.  works perfect except for my checkboxes. Drupal spits out the
> checkbox in the form of
> [code]
> name=pollutants[one]
> name=pollutants[two]
> name=pollutants[three]
> [/code]
>
> but I want to validate on the group of the - ie I want to know if ANY
> of pollutants[] was checked.
>
> I have tried
> rules: {"pollutants[]":      "required"} but that doesn't work.
> I don't want to do
> rules: {"pollutants[one]":      "required","pollutants[two]":
> "required","pollutants[three]":      "required"}  because that will
> give me 3 error messages.
>
> Any ideas?
> Thanks.
>
>

Reply via email to