Can options be created based on the search term?
How do I enable tagging?
{% highlight js linenos %}
$('select').select2({
tags: true
});
{% endhighlight %}
{% include options/not-written.html %}
Does tagging work with a single select?
{% include options/not-written.html %}
How do I add extra properties to the tag?
{% include options/not-written.html %}
Can I control when tags are created?
{% include options/not-written.html %}
How do I control the placement of the option?
{% highlight js linenos %}
$('select').select2({
insertTag: function (data, tag) {
// Insert the tag at the end of the results
data.push(tag);
}
});
{% endhighlight %}
{% include options/not-written.html %}