Yes it will certainly work. I forgot to mention that I don't know in advance
how deep my list is going to be (I'm working on a webmail and I would like
to represent folders hierarchy using <ul> and <li> tags)

2011/2/28 Naytee <[email protected]>

> I'm not technically sound in MooTools, I'm pre-beginner, so if this
> soounds stupid, I apologise immediately.
>
> Would $$(#div li ul li), not help?
>
> On Feb 28, 2:13 pm, Antoine Nguyen <[email protected]> wrote:
> > 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
>

Reply via email to