What are the differences between Chosen and Select2?

前端 未结 11 809
陌清茗
陌清茗 2020-12-12 09:54

Chosen and Select2 are the two more popular libraries for extending selectboxes.

Both seem to be actively maintained, Chosen is older and supports both jQuery and Pr

11条回答
  •  轮回少年
    2020-12-12 10:25

    chosen.js vs select2.js

    • MIT license for both
    • Dependencies:
      • Select2: jQuery
      • Chosen: tbc
    • Desktop browser support:
      • Select2: IE8+
      • Chosen: IE8+
    • Device support:
      • Select2: unclear
      • Chosen: disabled on iPhone, iPod Touch, & Android mobile devices
    • Weight (minified):
      • Select2: 57KB
      • Chosen: 27KB
    • Usage: Select2 supports more "fancy" UI (see 'templates')
    • Both code repos are available on Github
      • Select2: contributions: very active
      • Chosen: contributions: around 3x less than Select2

    select2.js contributions chosen.js contributions

    ps. I will try to update this answer when I find out more about the missing points

提交回复
热议问题