Answers for "Toggle checkbox checking in jquery"

1

Toggle checkbox checking in jquery

$(document).ready(function() {
    $("#select-all-teammembers").click(function() {
        var checkBoxes = $("input[name=recipients\\[\\]]");
        checkBoxes.prop("checked", !checkBoxes.prop("checked"));
    });                 
});
Posted by: Guest on May-27-2021

Browse Popular Code Answers by Language