Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make checkbox tigger change event #28

Open
crazywako opened this issue Oct 24, 2014 · 0 comments
Open

Make checkbox tigger change event #28

crazywako opened this issue Oct 24, 2014 · 0 comments

Comments

@crazywako
Copy link

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
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant