bootstrap-select
bootstrap-select copied to clipboard
Tick Box appearing when I don't want it too
Hi
Great feature Silvio! When I use it in my simplest form I get a tick box beside combobox items that I don't want - see attached image and the code -
Help anyone! :)
Sean

Code is here for the html
<!-- Le styles -->
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="../assets/js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="http://twitter.github.io/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="http://twitter.github.io/bootstrap/assets/ico/favicon.png">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="http://twitter.github.io/bootstrap/examples/starter-template.html#">Project name</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="http://twitter.github.io/bootstrap/examples/starter-template.html#">Home</a></li>
<li><a href="http://twitter.github.io/bootstrap/examples/starter-template.html#about">About</a></li>
<li><a href="http://twitter.github.io/bootstrap/examples/starter-template.html#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<h1>Bootstrap starter template</h1>
<p>Use this document as a way to quick start any new project.<br> All you get is this message and a barebones HTML document.</p>
<!-- Sean ================================================== -->
<form class="form-inline">
<select class="selectpicker" style="display: none;">
<option>I have</option>
<option>I need</option>
</select>
<input type="text" class="input-small" placeholder="how much?" id="input01">
<select class="selectpicker" id="currency1">
<option data-subtext=" (British Pound)">GBP</option>
<option data-subtext=" (Euros)">EUR</option>
<option data-subtext=" (US Dollar)">USD</option>
<option data-subtext=" (Swiss Franc)">CHF</option>
<option data-subtext=" (Austrialian Dollar)">AUD</option>
</select>
<!-- COMMENTED OUT SOD <p class="lead">in exchange for</p> -->
<select class="selectpicker" id="currency1">
<option data-subtext=" (Euros)">EUR</option>
<option data-subtext=" (British Pound)">GBP</option>
<option data-subtext=" (US Dollar)">USD</option>
<option data-subtext=" (Swiss Franc)">CHF</option>
<option data-subtext=" (Austrialian Dollar)">AUD</option>
</select>
<a class="btn btn-primary" href="./xChange/xChange.html">Find me a price</a>
</form>
<!-- Sean ================================================== -->
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="./Bootstrap, from Twitter_files/jquery.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-transition.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-alert.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-modal.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-dropdown.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-scrollspy.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-tab.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-tooltip.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-popover.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-button.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-collapse.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-carousel.js"></script>
<script src="./Bootstrap, from Twitter_files/bootstrap-typeahead.js"></script>
<script src="./silviomoreto-bootstrap-select/bootstrap-select.js"></script>
<script type="text/javascript">
window.onload=function(){
$('.selectpicker').selectpicker();
};
</script>
You need to include the bootstrap-select.css file.
Many thanks Casey for the quick response... Sean