Select Dropdown
Bootstrap Select Dropdown - free examples & tutorial
Responsive Select Dropdown built with Bootstrap 5. Examples include multiselect dropdown, select dropdown with search box, checkbox form select dropdown & more.
Note: To learn more about Select component and see all available options, methods, events and advanced usage - read Select Docs & API section
Basic dropdown with Select
Make sure to read the main Select docs to learn how to use this component in production.
Basic dropdown with MultiSelect
Add multiple
attribute to the <select>
element to allow selecting more than one value.
Select Dropdown with label
Add a form label with an additional element with
.form-label
& .select-label
> classes.
Select Dropdown with placeholder
Fill in the placeholder
option to add a placeholder value instead of a label.
Disabled Select Dropdown
Make the select dropdown unclickable by adding the disabled
attribute.
Disabled options
Add disabled
attribute on option element to disable specific option.
Custom content
A custom content container with a class
.select-custom-content
will be displayed at the end of the select dropdown.
In this example we've added a
button.
Visible options
Use visibleOptions
option to change the number of options that will be displayed
in the select dropdown without scrolling.
Secondary text
Add secondary-text
data attribute to the specific options to display secondary
text.
Select Dropdown with Search
Set filter
option to true
to enable options filtering.
Option groups
It is possible to group options by using
optgroup
element.
Multiselect with icons
Add icon
data attribute to the specific options to display the option icon.
Validation
Set validation
option to true
to enable component validation. The
validFeedback
and invalidFeedback
options allow to modify the
validation messages.