Disabled options
+
+ In case that you need to disable certain options so that they can't be selected by the select2 interface, you can now pass in disabled: true
with your data. Please note: This also works for incoming values from ajax. When attached to a <select>
element, Select2 will respect its <option>
elements' disabled
property.
+
+ +
+Example Code
+++