I have some jQuery Mobile flip toggle switches on my Android/iPad application, and I need to
change their states (on/off) dynamically, using JavaScript.
I was looking for a solution here, (Change value of flip toggle dynamically with jQuery Mobile) and I tried several ways (.val('on')
, .slider('enable')
...) but it seems the control is not working at all.
Is there a solution for this issue? How can I do to change the flip switch state from code?
See Question&Answers more detail:os