bootstrap-checkbox icon indicating copy to clipboard operation
bootstrap-checkbox copied to clipboard

Make checkbox tigger change event

Open crazywako opened this issue 11 years ago • 0 comments

Add

    setChecked: function (checked) {
        this.$element.prop("checked", checked);
        this.trigger('change'); // This is now missing
        this.$element.prop("indeterminate", false);
        this.checkChecked();
    },

Add this.trigger('change'); so that we can listen for change event for example:

$('input').on('change',function(){ // TODO });

crazywako avatar Oct 24 '14 07:10 crazywako