Currently I'm using something like : $$("#div li"), which is equivalent to
what you proposed. (I just tried out your solution but the result is
similar)
My list looks like this :
<ul>
<li></li>
<li></li>
<li>
<ul>
<li></li>
</ul>
</li>
</ul>
I'm able to access the first level of li tags but not the deepest one.
2011/2/28 Fli7e <[email protected]>
> i guess you are looking for this:
>
> document.id('divid').getElements('li')
>
> http://mootools.net/docs/core/Element/Element#Element:getElements
>
> On 28 Feb., 14:49, tonio <[email protected]> wrote:
> > Hi list,
> >
> > it may be a silly question but I'm wondering how I can select all <li>
> > tags inside a nested list. Using something like "#div li" only returns
> > the top level elements (which is what it should do, I know that).
> >
> > How can I achieve that?
> >
> > Thanks in advance,
> >
> > Antoine
>