Skip to content

A custom select for @twitter bootstrap using button dropdown; originally by Silvio Moreto

Notifications You must be signed in to change notification settings

icicle/bootstrap-select

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

bootstrap-select

A custom select for @twitter bootstrap using button dropdown; originally by Silvio Moreto and Ana Carolina. See a here an example

Observation

To properly work on some browser, you need to add a .clearfix class in your css.

Usage

Create yours <select> and add to them the class .selectpicker, like example below:

<select class="selectpicker">
  <option>Mustard</select>
  <option>Ketchup</select>
  <option>Barbecue</select>
</select>

In your javascript, just add the line:

$('.selectpicker').selectpicker();

You can also pass a button bootstrap class to your select using the option btnStyle, like:

$('.selectpicker').selectpicker({
  btnStyle: 'btn-info'
});

About

A custom select for @twitter bootstrap using button dropdown; originally by Silvio Moreto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published