Handy flip switch
This kind switch is very handy for checkboxes in form. You have to remember setting Internet privilege for external scripts and style sheets.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<style>
label, input {
display:table-cell;
}
</style>
</head>
<body>
<div data-role="page">
<div data-role="main" class="ui-content">
<form method="post">
<h3>Set options:</h3>
<label for="switch_1">Fast mode</label> <input type="checkbox" data-role="flipswitch" name="switch" id="switch_1">
<label for="switch_2">No gravity</label> <input type="checkbox" data-role="flipswitch" name="switch" id="switch_2">
<label for="switch_3">Extra weapons</label> <input type="checkbox" data-role="flipswitch" name="switch" id="switch_3">
<br>
<input id="sub" type="submit" data-inline="true" value="Submit">
</form>
</div>
</div>
</body>
</html>