News for hackers. Stuff that matters.
Re:Select2 - A better way to make select boxes (with jQuery) by christiangenco on Wednesday June 06, 2012 @10:30PM (#4077306)
Obligatory: what's the difference between Select2 and Chosen? (http://news.ycombinator.com/item?id=4074501)
Re:Select2 - A better way to make select boxes (with jQuery) by nathanappere on Wednesday June 06, 2012 @10:38PM (#4077331)
I was just about to ask this question, but there seems to be some differences: loading of remote data (I believe in chosen you have to hook yourself the ajax part), the infinite scrolling is also a good idea, and the drag & drop sort was missing.
Re:Select2 - A better way to make select boxes (with jQuery) by reedlaw on Wednesday June 06, 2012 @10:41PM (#4077343)
Looks like it's based on Chosen.
Re:Select2 - A better way to make select boxes (with jQuery) by hexvector on Thursday June 07, 2012 @02:20PM (#4080505)
Chosen doesn't support adding tags dynamically. It also looks like select2's api is more friendly and convenient. I will be converting my chosen dialog to select2 as it looks like an improvement overall.
Re:Select2 - A better way to make select boxes (with jQuery) by pimeys on Thursday June 07, 2012 @02:36AM (#4077881)
The biggest thing here is the AJAX loading of data. Like I said in that submission, Chosen really chokes if you have thousands of items in it.
Re:Select2 - A better way to make select boxes (with jQuery) by xuhu on Thursday June 07, 2012 @06:28AM (#4078298)
Thousands of items arguably don't belong in a combobox, they should probably be split by letter, country, prefix, etc.
Re:Select2 - A better way to make select boxes (with jQuery) by SigmundA on Thursday June 07, 2012 @08:32PM (#4082051)
Yeah I mean imagine if say Google did something like that for their entire search results, how ridiculous would that be...
Re:Select2 - A better way to make select boxes (with jQuery) by cmaitchison on Thursday June 07, 2012 @12:52AM (#4077666)
I chose select2 for homehelpnow.com.au because of paged ajax lookups. Check out the place search box on homehelpnow.com.au. Its AU-based, so might be a bit slower for you US folk.