I can’t find how to select tags with select2.
I have a list of tags ids in the following format :
tag1, customtag1, tag2…
select2 is initialized on a select with static options.
<select id="myselect2" multiple> <option value="tag1">Tag1</option> <option value="tag2">Tag2</option> </select>
If I try to use
["tag1", "customtag"] as parameter, only “tag1” will be selected (since “customtag” isn’t a static option in the select, it should be then considered as a new tag).
Minimal jsfiddle : http://jsfiddle.net/ThibautSF/m61o43q0/22/