$ != $$ $(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---tp2133050p2138513.html > 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.com www.mootorial.com Clientcide: http://www.clientcide.com www.clientcide.com -- View this message in context: http://n2.nabble.com/How-addEvent-to-CSS-Class-selector---tp2133050p2138539.html Sent from the MooTools Users mailing list archive at Nabble.com.
