Hi,

> considerations: 2 ul elements sharing id because of css styling.

Not really, right?  You mean they're sharing the same class or some
such?  You can't have two elements on a page with the same ID; IDs are
required to be unique across the DOM.

FWIW,
--
T.J. Crowder
tj / crowder software / com

On Oct 20, 12:40 pm, "jason maina" <[EMAIL PROTECTED]> wrote:
> [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to