How to change the css of color of select2 tags?

后端 未结 8 1892
萌比男神i
萌比男神i 2020-12-31 06:47

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

8条回答
  •  甜味超标
    2020-12-31 07:26

    You can access the tag container like this:

    formatSelectionCssClass = function(tag, container) {
        $(container).parent().addClass("my-css-class");
    };
    

提交回复
热议问题