"Button Dropdown Select"
Bootstrap 3.0.1 Snippet by Rakaaaa

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.1/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="container"> <div class="row"> <h2>Button Dropdown Select</h2><br> <div class="bs-docs-example"> <select class="selectpicker" data-style="btn-primary" style="display: none;"> <option>Mustard</option> <option>Ketchup</option> <option>Relish</option> </select> </div> </div> </div> <script type="text/javascript"> 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> <script src="http://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.js" />
@import url("http://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.min.css")

Related: See More


Questions / Comments: