# Change from chosen js to select2 js

**URL:** <https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516>\
**Category:** Feature\
**Created:** [2014年五月10日 16:10 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516 "2014-05-10T16:10:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nXqd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nxqd/32/114262_2.png) [@nXqd](https://meta.discourse.org/u/nXqd)\
**Post date:** [2014年五月10日 16:10 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516/1 "2014-05-10T16:10:11Z")

</div>

Beside some advantages being discussed here :

> <https://stackoverflow.com/questions/13575531/what-are-the-differences-between-chosen-and-select2>

But this maybe already out of date. The reason I want to change to select2 because we don’t need to type a “correct” string at the beginning to match options, select2 matches the text options partially.

If you are ok with this, I will create a pull request on this.

Try select2 here : [Select2 has moved!](http://ivaynberg.github.io/select2/)

---

<div class="post-metadata">

**Author:** ![lightyear](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lightyear](https://meta.discourse.org/u/lightyear)\
**Post date:** [2014年五月10日 16:33 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516/2 "2014-05-10T16:33:45Z")

</div>

Great suggestion. I especially love the multi-item-selection and amazing templating it offers. Would love to see Select2 get used instead of our own (rather bad fixes on) autocomplete for User/Group-Selection.

@sam would you accept a PR for this?

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2014年五月10日 17:36 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516/3 "2014-05-10T17:36:04Z")

</div>

I would happily accept a PR for this if it doesn’t break anything.

I know we use some custom templates for our select boxes. We’d need to make sure they are all working after the swap. I think the most complex select choices are for categories right now.

---

<div class="post-metadata">

**Author:** ![nXqd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nxqd/32/114262_2.png) [@nXqd](https://meta.discourse.org/u/nXqd)\
**Post date:** [2014年五月11日 04:55 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516/4 "2014-05-11T04:55:13Z")

</div>

@eviltrout it would be nice that you can check this one for me 😃  
[https://github.com/discourse/discourse/pull/2333](https://github.com/discourse/discourse/pull/2333)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2014年六月23日 07:13 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516/5 "2014-06-23T07:13:57Z")

</div>

I believe this is now complete @eviltrout @nXqd?

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2014年六月23日 15:23 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516/6 "2014-06-23T15:23:20Z")

</div>

Yup it’s all merged!

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2014年六月23日 15:23 UTC](https://meta.discourse.org/t/change-from-chosen-js-to-select2-js/15516/7 "2014-06-23T15:23:24Z")

</div>


