jQuery toggle checkboxes together

$('.js-toggle-together-checkbox').on('change', function () {
    var checkedProp = $(this).prop('checked');
    $('.js-toggle-together-checkbox').not(this).prop('checked', checkedProp);
});

Leave a Reply

Your email address will not be published.