GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Bootstrap Switch
  • Download
  • Examples
  • Documentation
  • Options
  • Methods
  • Events
  • Documentation (v2.0.1)
  • Bug reports

This view

  • Original page
  • New address

GeezerVison is showing bttstrp.github.io — Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches

Bootstrap Switch

Turn checkboxes    and radio buttons    into toggle switches  

Download Bootstrap Switch


Currently v3.3.4 · Compatible with Bootstrap 2 and 3

Getting Started

Include the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript.

[...]
<link href="bootstrap.css" rel="stylesheet">
<link href="bootstrap-switch.css" rel="stylesheet">
<script src="jquery.js"></script>
<script src="bootstrap-switch.js"></script>
[...]

Add your checkbox.

<input type="checkbox" name="my-checkbox" checked>

Initialize Bootstrap Switch.

$("[name='my-checkbox']").bootstrapSwitch();

Enjoy.

See Examples Browse Documentation
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.