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.