I use this codes for checkbox checked event but it does not work.
css
try this
$('input[name="my-checkbox"]').on('switchChange.bootstrapSwitch', function (event, state) { if (state == true) { //your code } else { //your code } });