iOS Style Toggle Switch With Gooey Effect - jQuery mSwitch

iOS Style Toggle Switch With Gooey Effect - jQuery mSwitch

Yet another jQuery toggle switch plugin which transforms a regular checkbox input into an iOS style switch control with cool gooey sliding effects when toggled.

1. Insert jQuery JavaScript library and the jQuery mSwitch plugin's JavaScript and CSS files into the page.

<link href="jquery.mswitch.css" rel="stylesheet">
<script src="" 
<script src="js/jquery.mswitch.js"></script>

2. Create a normal checkbox on the page.

<input type="checkbox" id="switcher" class="m_switch_check" value="0">

3. Transform the checkbox into a toggle switch.


4. Available callback functions.

  onRendered: function(){},
  onRender: function(elem){},
  onTurnOn: function(elem){
    return true;
  onTurnOff: function(elem){
    return true;

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

  • Publication date: 25.02.2018
  • Source