Limit Checkbox amount

Posted by streetparade on Stack Overflow See other posts from Stack Overflow or by streetparade
Published on 2010-06-03T13:30:55Z Indexed on 2010/06/03 14:04 UTC
Read the original article Hit count: 316

Filed under:
|

I have 20 Checkboxes. I need to disable 16 Checkboxes, if 4 checkboxes are selected.

I tryed this begann with this jquery code

    $("input[type=checkbox][name=cate]:checked").each(

    function()
    {
    }

);

What i need is if a user selects 4 checkboxes then all other checkboxes should be disabled.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about checkbox