Select2 dropdown but allow new values by user?

前端 未结 9 1464
灰色年华
灰色年华 2020-11-27 10:09

I want to have a dropdown with a set of values but also allow the user to \"select\" a new value not listed there.

I see that select2 supports this if you are using

9条回答
  •  囚心锁ツ
    2020-11-27 10:31

    I just stumbled upon this from Kevin Brown. https://stackoverflow.com/a/30019966/112680

    All you have to do for v4.0.6 is use tags: true parameter.

提交回复
热议问题