Select2 dropdown allow new values by user when user types

前端 未结 3 1288
抹茶落季
抹茶落季 2021-02-09 14:44

The select2 component can be configured to accept new values, as ask in Select2 dropdown but allow new values by user?

And you can see it at: http://jsfiddle.net/pHSdP/

3条回答
  •  迷失自我
    2021-02-09 15:27

    And to be able to submit multiple new choices together with the existing ones:

    select2({tags: true, selectOnBlur: true, multiple: true})
    

提交回复
热议问题