Tuesday, June 30, 2009

[jQuery] Re: (Validate) multiple groups of checkboxes

Hello there..

You can check the num of checked elements

$(":selected").count()

You can do this for every group you have.

Do yo have any working sample to show?

----- Original Message -----
From: "Maged Makled" <almigo10@gmail.com>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Monday, June 29, 2009 11:16 AM
Subject: [jQuery] (Validate) multiple groups of checkboxes


>
> Hey All,
> I have 30 groups of checkboxes and want to validate that
> the user select at least one checkbox from any group meaning if he
> selected one checkbox from the first group and nothing from the other
> 29 the form should be valid. I tried different solutions but none
> worked.
>
> Can anybody help
>
> Thanks
>
> -Maged Makled

No comments: