Categories
- Andy and Javi: Actionscript and AIR Quick Tips
- Arc90
- Architecture
- Avi and Patrick: Java Quick Tips
- Avi: REST Quick Tips
- Ben and Matt: PHP Quick Tips
- Business
- Chris and Corey: JQuery Quick Tips
- Chris and Matt: Unix Quick Tips
- Design
- Development
- Foresight
- Javi and Joel: JQuery Quick Tips
- Javi: CF Quick Tips
- Jobs
- Joel: .Net Quick Tips
- Lab
- Music
- Patrick and Joel: XML Quick Tips
- Reviews
- Tech
- The Internets
- Thoughts
- Trends
- Web
- What We Are Reading
Archives
Monthly Archives:
November 2007
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.
Permalink | Comments (10) | Technorati Tags :
