set the width of select2 input (through Angular-ui directive)

前端 未结 12 1763
名媛妹妹
名媛妹妹 2020-12-22 20:14

I have problem making this plunkr (select2 + angulat-ui) work.

http://plnkr.co/edit/NkdWUO?p=preview

In local setup, I get the select2 work, but I cannot set

12条回答
  •  萌比男神i
    2020-12-22 21:10

    add method container css in your script like this :

    $("#your_select_id").select2({
          containerCss : {"display":"block"}
    });
    

    it will set your select's width same as width your div.

提交回复
热议问题