multiple
attribute.
<option>
element:
<option>
elements can be grouped by wrapping them with in an <optgroup>
element:
disabled
attribute is set) and from remote sources, where the object has disabled: true
set.
multiple
attribute with maximumSelectionLength
in the select2 options.
true
, causes a clear button ("x" icon) to appear on the select box when a value is selected. Clicking the clear button will clear the selected value, effectively resetting the select box back to its placeholder value.
dir
attribute is set on the <select>
or any parents of it. You can also initialize Select2 with the dir: "rtl"
configuration option.