diff --git a/index.html b/index.html index 9619af90..c7f75ef2 100644 --- a/index.html +++ b/index.html @@ -970,6 +970,41 @@ $("#e18,#e18_2").select2(); +
+ +
+

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

+
+              
+
+
+
+
+

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

+
+              
+
+
+