From 160abdc54e46ced703fbc36e36541a3fa2b9da04 Mon Sep 17 00:00:00 2001 From: Zubair Date: Tue, 13 Jan 2015 12:59:49 -0500 Subject: [PATCH] cleanup example and move examle based on PR comments. --- docs/examples.html | 397 ++++++++++++++++++++++----------------------- 1 file changed, 195 insertions(+), 202 deletions(-) diff --git a/docs/examples.html b/docs/examples.html index 887aba9b..c7213d44 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -33,7 +33,7 @@ slug: examples

 
-
-    
-  
-
-  
-
-

Limited Multiple select boxes

-

Select2 multi-value select boxes can set restrictions regarding the maximum number of options selected. - The select below is declared with the multiple attribute with maxSelectionLength in the select2 options

- -

- -

-
-
-

Example code

- -

-
-
+        $(".js-example-placeholder-multiple").select2({
+          placeholder: "Select a state"
+        });
+      
     
@@ -176,7 +147,7 @@ $(".js-example-placeholder-multiple").select2({

 
-
 
-
+        $(".js-programmatic-disable").on("click", function () {
+          $(".js-example-disabled").prop("disabled", true);
+          $(".js-example-disabled-multi").prop("disabled", true);
+        });
+      
     
   
 
@@ -342,7 +313,7 @@ $(".js-programmatic-disable").on("click", function () {
 
       

 
-
+    
+  
+  
+
+

Limiting the number of selections

+

Select2 multi-value select boxes can set restrictions regarding the maximum number of options selected. + The select below is declared with the multiple attribute with maxSelectionLength in the select2 options

+ +

+ +

+
+
+

Example code

+ +

+
+      
     
@@ -517,7 +510,7 @@ function log (name, args) {

 
-
     
@@ -672,7 +665,7 @@ $(".js-example-diacritics").select2();
 
       

 
-