diff --git a/docs/_includes/examples/tags.html b/docs/_includes/examples/tags.html index 69733a38..d64a27f1 100644 --- a/docs/_includes/examples/tags.html +++ b/docs/_includes/examples/tags.html @@ -2,7 +2,7 @@

Tagging support

- Select2 can be used to quickly set up fields used for tagging. + Select2 can be used to quickly set up fields used for tagging.

@@ -13,7 +13,7 @@

- @@ -21,9 +21,31 @@

+{% highlight js linenos %} +$(".js-example-tags-multiple").select2({ + tags: true +}) +{% endhighlight %} + +

+ Tagging can also be used on a single select element. Simply remove the + multiple="multiple" attribute from your HTML markup. +

+ +
+

+ +

+
+ {% highlight js linenos %} $(".js-example-tags").select2({ tags: true }) {% endhighlight %} +