Reputation: 175
I am using the bootstrap switch in my checkboxes. I want to check what is the state of my checkbox in loading the page using this library.
Upvotes: 0
Views: 465
Reputation: 175
Look how simple it was to answer: D
$(document).ready(function() {
//get state
var state = $("#checkbox").bootstrapSwitch('state');
});
Upvotes: 2