olance / jQuery-switchButton

jQuery UI iPhone-like switch button
111 stars 102 forks source link

Changing the underlaying input type="checkbox" don't refresh the state of the switch #17

Open edteke opened 10 years ago

edteke commented 10 years ago

I have several switches and want one that turn all of them off. How do you achieve this?

Will be good to have the option that when the underlying input changes the checked state, the switch also changes.

dowi commented 9 years ago

i have the save problem

toth-istvan-zoltan commented 8 years ago

try:

$('#myButton').switchButton('option', 'checked', true);

(it's in the documentation btw :P )