[code]
parent page
<ul id="tablist">
  <li>Some text</li>
</ul>

child page(loaded in a div)
<ul id="tablist">
  <li>Child some text</li>
</ul>

[/code]

[css]
#tablist{
    padding:3px 0;
    margin-left:0;
    margin-bottom:0;
    margin-top:0.1em;
    font:bold 12px Verdana, Arial, Helvetica, sans-serif;
    border-bottom:1px solid gray;
}

#tablist li{
    list-style:none;
    display:inline;
    margin:0;
}
[/css]

This my code and css listing...



On Mon, Oct 20, 2008 at 4:17 PM, T.J. Crowder <[EMAIL PROTECTED]>wrote:

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