xxxxxxxxxx
$('#all_orders').on('change', function() {
if ($(this).is(':checked')) {
$('#all_orders').prop('checked', true);
console.log(true)
} else {
$('#all_orders').prop('checked', false);
console.log(false)
}
})