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?
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?