Bootstrap Component
  • Home
  • Darklight
  • Datepicker
  • Dialog
  • Dropdown
  • Fileuploader
  • Floater
  • Slider
  • Switch
  • Notify
  • Others

Switch

Enhancement for checkbox.

  • Example
  • Usage
  • - Options
  • - Events

Switch bootstrap-switch.js

Examples

Swith is to replace the original checkbox with bootstrap style.

Usage

Enable darklight via JavaScript:

$("#input").switch();

Options

None.

Events

Event Description
change It will trigger when user change its value.
$("#input").change(function(){
	$(this).prop('checked');
});

Build By zombieJ.