A simple jQuery plugin that extends bootstrap's dropdown menu into a select menu
Several quick start options are available:
- download latest release
- npm:
npm install --save bootstrap-dropselect - bower:
bower install bootstrap-dropselect
** Make sure to link bootstrap-dropselect.js and bootstrap-dropselect.css to your project
Setup dropselect in 2 steps
Just code your standard bootstrap dropdown. http://getbootstrap.com/components/#dropdowns
<divclass="dropdown"><buttonclass="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
Dropdown
<spanclass="caret"></span></button><ulid="dropselect-demo1" class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"><lirole="presentation"><arole="menuitem" tabindex="-1" href="#">Action</a></li><lirole="presentation"><arole="menuitem" tabindex="-1" href="#">Another action</a></li><lirole="presentation"><arole="menuitem" tabindex="-1" href="#">Something else here</a></li><lirole="presentation" class="divider"></li><lirole="presentation"><arole="menuitem" tabindex="-1" href="#">Separated link</a></li></ul></div>Now get the ul DOM and run dropselect
$(function(){$('#dropselect-demo1').dropselect();})http://lodev09.github.io/bootstrap-dropselect/#api
All bugs, feature requests, pull requests, feedback, etc., are welcome!
Bootstrap Components, Github's Select Menu
Released under the Apache License, Version 2.0. See LICENSE file.
Copyright 2014, Jovanni Lo / @lodev09 / www.lodev09.com / lodev09@gmail.com
