More information about the Underscore mailing list

[_] multiple select lists and javascript

Tim Beadle tim.beadle at gmail.com
Wed Feb 21 13:29:11 GMT 2007

On 21/02/07, Jon Bennett <jmbennett at gmail.com> wrote:
> you could go a completely other route and use the Prototype Lib.
> should be pretty easy to capture the onselect event on one form and
> use 'new Insertion' to add that value to the second form
>
> some links:
>
> http://prototypejs.org/api/insertion

*cough* Other frameworks are available *cough*. jQuery [1] being my
current fave.

It's really nice and lightweight (I reduced the JavaScript payload on
one of our sites from 100k+ to <40k by switching from YUI to
jQuery...). It's got a plugin architecture, too, so if the core
library doesn't do what you want, chances are someone's written a
plugin that does, or you can write one yourself.

The usual "make sure you know what the hell you're doing wrt
progressive enhancement" caveats apply.

Tim

[1] http://www.jquery.com/