We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 559a93b commit a728d94Copy full SHA for a728d94
1 file changed
docs/examples.html
@@ -230,14 +230,22 @@ <h1>Tagging support</h1>
230
</select>
231
</p>
232
233
+ <p>
234
+ Note that when tagging is enabled the user can select from pre-existing
235
+ options or create a new tag by picking the first choice, which is what
236
+ the user has typed into the search box so far.
237
+ </p>
238
+
239
</div>
240
<div class="col-md-8">
241
<h2>Example code</h2>
242
- <pre data-fill-from=".js-code-disabled-results"></pre>
-
-<script type="text/x-example-code" class="js-code-data-disabled">
243
+ <pre data-fill-from=".js-code-tags"></pre>
244
245
+<script type="text/x-example-code" class="js-code-tags">
246
+$(".js-example-tags").select2({
247
+ tags: true
248
+})
249
</script>
250
251
</section>
0 commit comments