Skip to content

bigotilda/bootstrap-toggle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootstrap Toggle Switches

  • Checkbox state setting now compatible to jQuery 1.10.1
  • LESS support for both bootstrap-toggle.css and bootstrap-toggle-animated.css
  • Check out examples for usage
  • Enjoy, Nijiko and Nate tried to make it as versatile as possible!

Requirements

  1. jQuery 1.10
  2. Bootstrap 2.3.2

Installation

First, include bootstrap-toggle.css right after Bootstrap's CSS; alternatively use bootstrap-toggle-animated.css for animated switches.

Second, include bootstrap-toggle.js after jQuery.

##Usage:

<div class="toggle basic" data-enabled="ON" data-disabled="OFF" data-toggle="toggle">
    <input type="checkbox" value="1" name="myCheckbox" class="checkbox" checked="checked" />
    <label class="check" for="myCheckbox"></label>
</div>

<script>
$('.basic').toggleSlide();
</script>

Contributors

Copyright 2012 Goodybag, Inc.

About

Bootstrap toggle switches - Fork it and make it better :D

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 100.0%