Ah! Thank you! I appreciate the help. That clears it up a bit. I had gotten as far as the first two lines, but was missing what the purpose of $$ was -- thanks. One of these days I need enough time to learn this properly. Makes perfect sense.
On Jan 10, 9:51 am, nutron <[email protected]> wrote: > $ != $$ > $(id) = element (or false if not found) > $$(selector) = array of elements (or empty array) > > On Sat, Jan 10, 2009 at 9:42 AM, Deleyna (via Nabble) < > [email protected]<ml-user%[email protected]> > > > > > wrote: > > > I have a similar problem. I'm trying to do this: > > > $('.menulistitem').addEvent('click', function(e) { > > anotherEl.morph('.center2'); > > }); > > > when I use the same code with the id, it works great...but requires > > looping and many lines of code. I'm missing something simple here. > > Anybody care to help a noob? > > > ------------------------------ > > View message @ > >http://n2.nabble.com/How-addEvent-to-CSS-Class-selector---tp2133050p2... > > To start a new topic under MooTools Users, email > > [email protected]<ml-node%[email protected]> > > To unsubscribe from MooTools Users, click here< (link removed) >. > > ----- > The MooTools Tutorial: http://www.mootorial.comwww.mootorial.com > Clientcide: http://www.clientcide.comwww.clientcide.com > -- > View this message in > context:http://n2.nabble.com/How-addEvent-to-CSS-Class-selector---tp2133050p2... > Sent from the MooTools Users mailing list archive at Nabble.com.
