How to get twitter bootstrap toggle switch values using jquery

Viewed 54178

I am using http://bootstrapswitch.site/ for toggle switch buttons. How can I get the toggle switch like 'on' or 'off' using jQuery?

My Code is :

<div class="make-switch  switch-small"><input type="radio" class="nsfw"></div>

Please tell me how to solve this issue.

4 Answers
$('#switcher').bootstrapSwitch('state');

Not work for me, but in my version:

$("#switcher").bootstrapSwitch("status");

can work well.

Related