This should do it:

moveLinks.each(function(el){
   el.observe('click', function(e){
      alert(Event.element(e).getAttribute('id'));
      Event.stop(e);
   })
})
-- 
View this message in context: 
http://www.nabble.com/Event-Listener%2C-getting-the-element-observed-tf3925459.html#a11138682
Sent from the RubyOnRails Spinoffs mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to