소스 검색

Fix tagging example

Tagging should be demonstrated using the multiple select, as that
is where it really shines. It's also how we used to demonstrate it.

This closes https://github.com/select2/select2/issues/2901.
Kevin Brown 10 년 전
부모
커밋
1fe8de3ad5
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      docs/examples.html

+ 4 - 3
docs/examples.html

@@ -466,9 +466,10 @@ function log (name, args) {
       </p>
 
       <p>
-        <select class="js-example-tags form-control">
-          <option value="one">First</option>
-          <option value="other">Other</option>
+        <select class="js-example-tags form-control" multiple="multiple">
+          <option selected="selected">orange</option>
+          <option>white</option>
+          <option selected="selected">purple</option>
         </select>
       </p>