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

How do you change switch option from JavaScript #71

Closed
respectYourNeighbour opened this issue May 20, 2015 · 4 comments
Closed

How do you change switch option from JavaScript #71

respectYourNeighbour opened this issue May 20, 2015 · 4 comments

Comments

@respectYourNeighbour
Copy link

I cannot change the state of the checkbox from JavaScript code, the following code doesn't work, I cannot see the switch button animate the change.

$("#myCheck").on('click', function() {
document.getElementById("inlineCheckbox").checked = true;
});

@abpetkov
Copy link
Owner

Duplicate of #70

@respectYourNeighbour
Copy link
Author

This was the fastest response I got on github!
You guys rull! +1:

@Sanafan
Copy link

Sanafan commented May 28, 2015

How did you select your switchery element now? I can not get them by the id from the outside div. So how do i select a spefic switch via JavaScript and can tell her .enable(); ?

@abpetkov
Copy link
Owner

@Sanafan adressed your question in #70

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

3 participants