On 17 Lis, 14:59, shapper <[EMAIL PROTECTED]> wrote:
> Hello,
Hello
> It is working fine but now I would like a new rule that:
> - Requires that one of the first 3 checkboxes to be selected ... and
> only one!
Not tested, but it schould be sth like this:

var checked = $('input[type=checkbox]:lt(3):checked');
if (checked.length == 1) { 'only one is checked' }

Always keep http://refcardz.dzone.com/refcardz/jquery-selectors near
Your hand ;)

Regards,
Mateusz

Reply via email to