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=ch
$("input[type=checkbox][name=cate]").click(function() { var bol = $("input[type=checkbox][name=cate]:checked").length >= 4; $("input[type=checkbox][name=cate]").not(":checked").attr("disabled",bol); });
demo