As soon as I add tags to my jQuery select2
it breaks and reverts back to the normal HTML select
box.
Here is my code (exactly like this example):
$(document).ready(function() {
$("#tags").select2({tags:["red", "green", "blue"]});
});
If I remove the tags part it works again:
$(document).ready(function() {
$("#tags").select2();
});
#tags
a<div>
or a<select>
- it wont work for<select>
– Plater