The flip switch is JQuery mobile's toggle switch widget. It can be operated by clicking or swiping.
A toggle switch is a common element in User Interfaces mimicking a physical switch that allows the user to select between two states. To create a basic on/off switch in JQuery-mobile use a <select>
with two options and the attribute data-role="slider"
:
<label for="flip-1">Select slider:</label>
<select name="flip-1" id="flip-1" data-role="slider">
<option value="off">Off</option>
<option value="on">On</option>
</select>