The script itself works like this, you select a category, it selects all checkboxes in it, you remove it, but after that the group selection doesn't work = (.

$('.admin:checkbox').change(function() { var name = $(this).attr("id"); //alert(name); $("input[name='" + name + "']").attr('checked', $('#' + name).is(':checked')); }); 


    2 answers 2

    If I understand correctly, see this example.

    • You are just super =)! - Dartanyan
    • one
      @ Dartanyan, until you have scored enough points - no need to press the "reward" button. Vote "thumbs up" / "thumbs down" or mark as the correct answer by clicking on the "check mark" next to the answer. - Deonis
     $('#' + name).is(':checked') ? 'checked':'' //и далее по тексту. 
    • can be more? - Dartanyan