I am using this switch. I have tried using
$("[id='switchId']").bootstrapSwitch('setState', false);
to no avail.
Instead of setState : use this $("[id='switchId']").bootstrapSwitch("state", true);
Instead of setState : use this $("[id='switchId']").bootstrapSwitch("state", true);