Is there a properly tested alternative to Select2 or Chosen?

JavascriptJqueryFormsTestingJquery Select2

Javascript Problem Overview


I am looking for an alternative to Select2 that basically provides the same functionality, but includes proper tests.

The quest for the holy grail? The last unicorn?

Javascript Solutions


Solution 1 - Javascript

Selectize.js is a select2 alternative I've been working on that has a suite of tests using a combination of testem, syn, mocha, and chai. Right now there are the following classes of tests:

  • Interaction
    Functional tests that makes sure the control behaves as if the user is using it (using syn).
  • Setup
    Ensures the control can be initialized properly from existing <select> and <input> elements.
  • API
    Tests core API methods for proper functionality.
  • Events
    Ensures built-in events get fired at the right times with the proper arguments.
  • XSS
    Tests a handful of potential exploits.

With that said, the tests aren't as expansive as I want them to be, but it's getting there :)

Solution 2 - Javascript

Note: I'm no longer maintaining this project. Choose another one.


Bselect, which I develop, is tested, however doesn't include all the features (yet) from Select2/Chosen.

If you want, join me in its development :)

Solution 3 - Javascript

Another possible alternative is bootstrap-multiselect

"JQuery multiselect plugin based on Twitter Bootstrap"

Examples and documentation: http://davidstutz.github.io/bootstrap-multiselect/

  • The repository does not contain any automated tests, manual tests instead
  • Themed using Bootstrap 3
  • JavaScript source code is short: 800 lines of code
  • 524 stars on GitHub (as of 2013/12/13)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJoseph TuraView Question on Stackoverflow
Solution 1 - JavascriptbrianreavisView Answer on Stackoverflow
Solution 2 - JavascriptgustavohenkeView Answer on Stackoverflow
Solution 3 - Javascripttanguy_kView Answer on Stackoverflow