I’m calling trigger on a checkbox to flip its state. Once this is done I need to call a function. Part of the function counts the number of boxes checked so this function can only be called after the checkbox has flipped.
$('input',this).trigger('click');
// What do I do to call afterTrigger() when 'input' click event has finished.
function afterTrigger(){
// ... calculation
}
You can call the function directly after the trigger event.