bootstrap input dropdown select code example
Example 1: bootstrap select input
<div class="form-group">
<label for="exampleFormControlSelect1">Example select</label>
<select class="form-control" id="exampleFormControlSelect1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<div class="form-group">
<label for="exampleFormControlSelect2">Example multiple select</label>
<select multiple class="form-control" id="exampleFormControlSelect2">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
Example 2: bootstrap radio buttons
Bootstrap’s .button styles can be applied to other elements, such as <label>s, to provide checkbox
or radio style button toggling. Add data-toggle="buttons" to a .btn-group
containing those modified buttons to enable their toggling behavior via
JavaScript and add .btn-group-toggle to style the <input>s within your buttons.
Note that you can create single input-powered buttons or groups of them.
The checked state for these buttons is only updated via click event on the
button. If you use another method to update the input—e.g., with
<input type="reset"> or by manually applying the input’s checked
property—you’ll need to toggle .active on the <label> manually.
Note that pre-checked buttons require you to manually add the .active class to
the input’s <label>.
<div class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="checkbox" checked> Checked
</label>
</div>