Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Toggle checkbox checking in jquery

$(document).ready(function() {
    $("#select-all-teammembers").click(function() {
        var checkBoxes = $("input[name=recipients[]]");
        checkBoxes.prop("checked", !checkBoxes.prop("checked"));
    });                 
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Toggle #checkbox #checking #jquery
ADD COMMENT
Topic
Name
5+8 =