Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
<input />
to a <textarea>
to support pasting multiple lines (#5806)te
) (#5881)hu
) for 4.1.0 changes (#5970)selectionCssClass
option now works when used without containerCssClass
(#5815, #5847)autocomplete
attribute is now copied over to the Select2 search field (#5839)Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors or sponsor Select2 on Open Collective!
<input />
tagsinitSelection
query
select2/compat/matcher
moduledropdownCss
optionadaptDropdownCss
optioncontainerCss
optionadaptContainerCss
optioncontainerCssClass
option has been renamed to selectionCssClass
(#5815)dropdownCssClass
and selectionCssClass
are now available in all builds of Select2 (#5815)eo
) (#5823)pa
) (#5831)amdLanguageBase
option no longer has an effect because the full build does not include any dynamically loaded modules (#5815)Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors or sponsor Select2 on Open Collective!
input
event before change
events (#4649)selection:update
once on DOM change events (#5734)Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors or sponsor Select2 on Open Collective!
<html>
element (#5682)Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors!
language
option now has a clearly defined fallback chain (#5602)maximumSelectionLength
being ignored by closeOnSelect
(#5581)allowClear
no longer shifts selections to a new line (#5603)<option>
(#5560)computedstyle
option for calculating the width (#5559).select2-selection__placeholder
CSS definitions for multiple selects (#5508)