We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$('#example').change(function () { console.log(document.getElementById('example').value); });
With this code, if I click on a checkbox initialized with this toggle,
<input type="checkbox" data-toggle="toggle" data-on="Yes" data-off="No" data-onstyle="success" data-offstyle="danger" id="example" data-size="large">
it will always yield "true" in the browser's console, regardless of whether it's "Yes" or "No".
Nevermind. I should change the code to this:
$('#example').change(function () { console.log(document.getElementById('example').checked); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With this code, if I click on a checkbox initialized with this toggle,
<input type="checkbox" data-toggle="toggle" data-on="Yes" data-off="No" data-onstyle="success" data-offstyle="danger" id="example" data-size="large">
it will always yield "true" in the browser's console, regardless of whether it's "Yes" or "No".
Nevermind. I should change the code to this:
The text was updated successfully, but these errors were encountered: