Bootstrap 5 Select Menu

Selection menu

Selection menu (select an item):

Multiple selection menu (hold down Ctrl or Shift, or use the mouse to drag) to select multiple items:

If you want to allow users to select from multiple options, please use the selection menu.

To set the style of the selection menu in Bootstrap 5, please use .form-select Class added to the <select> element:

Example

<select class="form-select">
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
</select>

Try It Yourself

Size of the selection menu

Please use .form-select-lg or .form-select-sm Class to change the size of the selection menu:

Example

<select class="form-select form-select-lg">
<select class="form-select">
<select class="form-select form-select-sm">

Try It Yourself

to disable the selection menu

Please use disabled Attribute to disable the selection menu:

Example

<select class="form-select" disabled>
  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
</select>

Try It Yourself

Data List

Bootstrap can also set the style of data lists, which is a predefined option list for the <input> element:

Please select your browser from the list:

Example

<label for="browser" class="form-label">Please select your browser from the list:</label>
<input class="form-control" list="browsers" name="browser" id="browser">
<datalist id="browsers">
  <option value="Edge">
  <option value="Firefox">
  <option value="Chrome">
  <option value="Opera">
  <option value="Safari">
</datalist>

Try It Yourself