I have two checkbox change events as follows:
1) This targets a specific checkbox:
$('#category').on('change', '#cars input[type=checkbox]', function(){
//
});
2) And this targets all checkboxes:
$('#category').on('change', 'input[type=checkbox]', function(){
//
});
The second event seems to be firing before the first one, but I would like the opposite instead.
How can I specify the order?