You can do this little more simpler using this event delegation
methods: http://gist.github.com/66568

and then use this syntax:

$('elementId').delegate('click', '.some_selector', method);

note on the method -> "this" variable will point to the element who
match the selector

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to