How to remove selected option from the option list in select2 multiselect and show selected options in the order they are selected

前端 未结 7 1284
一生所求
一生所求 2021-02-02 08:19

I have select2 multi select field in my form where I want to remove the selected option from the dropdown list after it is selected and again add it to the list if it is removed

相关标签:
7条回答
  • 2021-02-02 09:03
    $("#cqte").select2("val", "");
    //cqte is id of dropdown 
    
    0 讨论(0)
提交回复
热议问题