jQuery plugin demo
Select2 jQuery Plugin Demos
Download This Plugin Back To jQueryScript
Add searchable single and multi-select dropdowns to jQuery forms with Select2, including AJAX results, tags, and clearable selections.
Core Selection
Search, clear, group, and select from native HTML options.
Open the menu and type to filter the list.
Optgroups and disabled options stay visible in the dropdown.
Try selecting more than three values to see built-in maximum selection handling.
Data Sources
Use JavaScript arrays, new tags, and paged results without a build step.
Options are loaded from a JavaScript data array.
Create new values with Enter, comma, or semicolon.
Search terms and scroll position drive delayed, paged results through Select2's AJAX adapter.
Templates and State
Render richer rows, keep selected output compact, and toggle disabled controls.
Dropdown items and selected values use different templates.
Use the button below to enable or disable the control.
Templated value
No team selected
Disabled control state
Disabled
Events and Programmatic Control
Set values, clear values, open menus, and watch Select2 events fire.
The log records open, close, select, unselect, clear, and change events.
Selected values
No values selected
Event count
0 events
- Events will appear here after you interact with the select.