Monthly Archives:

November 2007

Posted on November 28, 2007 by Chris Dary

Introducing : jQuery MultiSelect

Ben Sgro, one of the newest editions to the cadre of arc90 developer extraordinaires, has created a new version of our MultiSelect tool, this time written in jQuery. It has been added to the Arc90 Tools section at the Arc90 Lab.

jQuery MultiSelect, much like its predecessor, is an easy way to turn an HTML select into a stylish drop down that supports multiple selections in a compact view.

If you are not familiar with jQuery, their homepage slogan is "The Write Less, Do More, Javascript Library". The following source code comparision reinforces that claim.

Javascript MultiSelect jQuery MultiSelect
Lines of code* 422 225

 

Not only does the new version have a significantly smaller source code footprint, it is also easier to follow than the original. This is partially due to the powers of jQuery, allowing complex DOM manipulation and method chaining to accomplish tasks with less code while still maintaining readablity.

* Our lines of code comparision was done by removing all comments that occupied one or more lines. Whitespace does count in the total.

| Comments (10) | Technorati Tags :

October 2007 | Main | December 2007