Touch-friendly iOS Style Checkbox Plugin With jQuery - Simple Switch

File Size: 6.72 KB
Views Total: 2940
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Touch-friendly iOS Style Checkbox Plugin With jQuery - Simple Switch

Simple Switch is a lightweight, mobile-friendly jQuery plugin for converting regular checkboxes into iOS-style toggle switches that support swipe events on touch services.

How to use it:

1. Load the stylesheet simple-switch.css in the head section for the primary CSS styles for the toggle switches.

<link href="simple-switch.css" rel="stylesheet">

2. Load the JavaScript file simple-switch.js after jQuery library, but before the closing body tag.

<script src="jquery.min.js"></script>
<script src="jquery.simpleswitch.js"></script>

3. Just call the function on your existing checkbox inputs and done.

$("input[type='checkbox']").simpleSwitch();

This awesome jQuery plugin is developed by hiooyUI. For more Advanced Usages, please check the demo page or visit the official website.