[code] function monitorMgr(){ var myLi=$$('ul.flMgr > li'); myLi.each(function(liItem){ Event.observe(liItem, 'click', anFunction, false); }); }
function anFunction(evt){ alert($(evt).id); } [/code] response: undefined expected result: the clicked li's id considerations: 2 ul elements sharing id because of css styling. This page is loaded in a div residing in another page 'parent page'. Which way out? Regards -jason -- Sent from Gmail for mobile | mobile.google.com --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---