Selectable optgroup using select2

后端 未结 8 586
醉话见心
醉话见心 2020-12-02 21:20

I have used select2 to select multiple options from a drop down, but is it possible for select2 to select the full optgroup?? What I want is when user select the option grou

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 22:06

    I found a plugin for Select2 v4 which adds the ability to click on the optgroup to select/unselect all of child options. It worked perfectly for me. bnjmnhndrsn/select2-optgroup-select

    Thanks Ben Henderson!

提交回复
热议问题