I just started using project for showing multiple tags from a select box and it works great, thanks for the library.
I just need to modify the color or css of the ta
For formatting the tags you can use the function formatSelectionCssClass.
$("#mySelect").select2({
formatSelectionCssClass: function (data, container) { return "myCssClass"; },
});
Or you could add a css class based on the option id:
$("#mySelect").select2({
formatSelectionCssClass: function (data, container) { return data.id; },
});
Remember that you will need to override both filter and background_color in your css class