How to set bootstrap-switch to off using Java?

102 Views Asked by At

I am using this switch. I have tried using

$("[id='switchId']").bootstrapSwitch('setState', false);

to no avail.

1

There are 1 best solutions below

0
On

Instead of setState : use this $("[id='switchId']").bootstrapSwitch("state", true);