How can I render a list select box (dropdown) with bootstrap?

genxgeek picture genxgeek · Aug 9, 2013 · Viewed 486.1k times · Source

Is there anything out of the box that bootstrap supports to render a "regular" defacto drop down list select box? That is, where the drop down box is a list of values and if selected populate the contents of the list box?

Something similar to this functionality?

http://bootstrapformhelpers.com/select/

enter image description here

Answer

Baerkins picture Baerkins · Aug 9, 2013

Bootstrap 3 uses the .form-control class to style form components.

<select class="form-control">
    <option value="one">One</option>
    <option value="two">Two</option>
    <option value="three">Three</option>
    <option value="four">Four</option>
    <option value="five">Five</option>
</select>

http://getbootstrap.com/css/#forms-controls