$$('a.delete').addEvent('click',qDelete);
On Thu, Sep 10, 2009 at 7:41 AM, Itay Moav <itay.malimo...@gmail.com> wrote: > Currently I am doing something on the line of: > > $$('a.delete').each(function(a){a.addEvent('click',qDelete)}); > > Where qDelete is a function name I wish to fire when the event happens. > Is this the optimal way to add events to an array of elements? > >