Closed LeeMallabone closed 11 years ago
I cloned your repo and I tried your patch... but... it doesn't work :(
$('#foo').toggleButtons('status') // "checked" or undefined, not true or false.
Change your code in this way and it works!
$('#normal-toggle-button').find('input:checkbox').is(':checked');
Then send me a pull request, ok? :D
Allow developers to query the toggle status without knowing the details of the wrapped checkbox. This permits code like: $('#foo').toggleButtons('status') // returns truthy if the toggle is active, falsey otherwise.