Objective
To implement styling on the select tag using the Bootstrap-select library.
Problem
I am getting two selects rather than just one dropdown menu.
Question
What do i need to change in my javascript or elsewhere to get it to display correctly
Code
Demo on CodePen
HTML
<select class="selectpicker">
<option data-hidden="true">Choose one...</option>
<option>BBQ Pork</option>
<option>Bacon</option>
<option>Sausage</option>
</select>
Script library order
- //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js
- https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js
- https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.7.5/js/bootstrap-select.min.js
Javascript (I placed it in a script tag after the libraries)
$(document).ready(function(){
$('.selectpicker').selectpicker();
});
