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

Callback? #22

Open
batbayar-su opened this issue Jan 31, 2016 · 3 comments
Open

Callback? #22

batbayar-su opened this issue Jan 31, 2016 · 3 comments

Comments

@batbayar-su
Copy link

Is there any callback option?

@batbayar-su
Copy link
Author

Right now i'm using like this

$("#choices .switch-button-button, #choices .switch-button-background").click(function(e) {
    if($('#choices .switch-button-background').hasClass('checked')) {
      //do something
    } else {
      //do something
    }
});

@olance
Copy link
Owner

olance commented Feb 1, 2016

Hi, unfortunately I don't have much time to maintain this old plugin and it's been really a long time since I used it...

If I am not mistaken, you should be able to use $('#myinput').change(function(e) { ... }) where #myinput is the checkbox that you initialized the plugin with!

@ghost
Copy link

ghost commented Jun 19, 2016

Make change " input type="checkbox" value="1" onchange="if(this.checked){ alert('a'); }else {alert('b')}"

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