How to set bootstrap-switch to off using Java?

70 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 answers

0
Raj C On

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