Skip to content

Lightweight plugin to skin/transform radios and/or checkboxes into Bootstrap button groups.

License

Notifications You must be signed in to change notification settings

akger1379/bootstrap-form-buttonset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-form-buttonset

A plugin to replace checkbox and/or radio inputs with Bootstrap button groups. The inputs will stay active in the background and can be submitted anytime without extra scripting.

Works with Bootstrap 2 and Bootstrap 3!

Demo

Bootstrap2

Bootstrap3

Usage

First define your inputs and wrap them inside a container.

Important - all inputs need to have their own unique id!

<div class="my-container">
	<input type="radio" name="answer" id="answer1" value="yes"><label for="answer1">Yes</label>
	<input type="radio" name="answer" id="answer2" value="no"><label for="answer1">No</label>
</div>

To activate the plugin just call $('.my-container').bsFormButtonset('attach');.

About

Lightweight plugin to skin/transform radios and/or checkboxes into Bootstrap button groups.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages