I have this Jquery code to be updating checkboxes base on whether a checkbox has been checked. However, This does not fire.
Code
Add the jQuery Events the trigger the onClick Event
$('input[type="checkbox"], input[type="radio"]').on('ifChanged', function (e) {
$(this).trigger("onclick", e);
});
Use ifChanged or ifChecked mentioned in the documentation
$('input').on('ifChecked', function(event){
alert(event.type + ' callback');
});
I just added this globally and it does the trick for me.
$(".i-checks input").on('ifChanged', function (e) {
$(this).trigger("change", e);
});