Form Select2
Select2
Use data-bs-spy="scroll"
attribute to update links in a navigation list based on the current scroll position. Scroll the area below the navbar and watch the active class change.
Basic Select
Multi Select
Ajax Select
Templating
Selections Templating
Disabling a Select2 Control
lect2 will respond to the disabled attribute on <select>
elements. You can also initialize Select2 with disabled: true to get the same effect.