title: How to change the jquery mobile flip switch state from code
body: <p>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, (<a href="https://stackoverflow.com/questions/4263858/change-value-of-flip-toggle-dynamically-with-jquery-mobile">Change value of flip toggle dynamically with jQuery Mobile</a>) and I tried several ways (<code>.val('on')</code>, <code>.slider('enable')</code>...) but it seems the control is not working at all.</p>
  
  <p>Is there a solution for this issue? How can I do to change the flip switch state from code?</p>