switch.js
A lightweight switch-like widget using twitter bootstrap and jQuery. This is good for simulating states like on/off, user/admin etc.
#Files The files to be included are switch.css and switch.js and the required html markup that looks like this:
<div class="btn-group" data-toggle="buttons-radio"> <button type="button" class="btn select">My value 1</button> <button type="button" class="btn unselect">My value 2</button> </div>
#Dependency libs This has been tested with JQuery versions 1.9.1 and above and with bootstrap 2.3.2 . This should also work with Bootstrap 3.0
#Example Link to Demo
#Using foundations If using the Foundation library, try using the buttongroup and small button classes correspondingly.