"Button Dropdown Select"
Bootstrap 3.1.0 Snippet by xrozix

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="bs-docs-example"> <select class="selectpicker" data-live-search="true"> <option>Hot Dog, Fries and a Soda</option> <option>Burger, Shake and a Smile</option> <option>Sugar, Spice and all things nice</option> </select> </div>
@import url("http://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.min.css")
window.onload=function(){ $('.selectpicker').selectpicker(); $('.rm-mustard').click(function() { $('.remove-example').find('[value=Mustard]').remove(); $('.remove-example').selectpicker('refresh'); }); $('.rm-ketchup').click(function() { $('.remove-example').find('[value=Ketchup]').remove(); $('.remove-example').selectpicker('refresh'); }); $('.rm-relish').click(function() { $('.remove-example').find('[value=Relish]').remove(); $('.remove-example').selectpicker('refresh'); }); $('.ex-disable').click(function() { $('.disable-example').prop('disabled',true); $('.disable-example').selectpicker('refresh'); }); $('.ex-enable').click(function() { $('.disable-example').prop('disabled',false); $('.disable-example').selectpicker('refresh'); }); // scrollYou $('.scrollMe .dropdown-menu').scrollyou(); prettyPrint(); }; <script src="http://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.js" />

Related: See More


Questions / Comments: