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

onclick Event? #7

Closed
CB-TBG opened this issue Nov 10, 2014 · 2 comments
Closed

onclick Event? #7

CB-TBG opened this issue Nov 10, 2014 · 2 comments

Comments

@CB-TBG
Copy link

CB-TBG commented Nov 10, 2014

Is it possible to have an onclick event with these? I want it to run a javascript function when I click on the buttons.

@vsn4ik
Copy link
Owner

vsn4ik commented Nov 10, 2014

There is a state change event:

$(':checkbox').checkboxpicker().change(function() {
  ...
});

or

$('#id').checkboxpicker();
$('#id').change(function() {
  ...
});

@CB-TBG
Copy link
Author

CB-TBG commented Nov 10, 2014

Thanks! I will see what I can do with that.

@vsn4ik vsn4ik closed this as completed Nov 11, 2014
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

2 participants