Dropdown Select

Bootstrap Select
Default
Groups
Multiple Selects
Limit the selection number
Select Styles
Live Search
Title
Title with Multiple Selects
Data Select Text Format
Disabled
Custom Size
data-width="auto"
data-width="100px"
data-width="75%"
Data Size
data-size="auto"
data-size="5"
Data Divider
Show Subtext
Data Icons
HTML Content
Dropdown header
Select2 Dropdowns
The Basics
Multi-Value Select Boxes
Placeholders
Minimum Input
Templating
Loading Data
Maximum Selection Size
Loading Array Data

Example below inlines the data by specifying an array in the data element. Items in such an array must have id and text keys.

If your data does not have a text key, an alternative key can be specified as a string:

or as a function:

data can also itself be a function that returns a results object:

Loading Array Data
Infinite Scroll with Remote Data
Programmatic Access
Events
Event Log
Tagging Support
Maximum Input Length
Auto Tokenization
Reacting to external value changes
Select2 Lifecycle
Select2 Disabled Mode
Lock selections