Greetings, I would like to toggle a huge multi-level ul with mootools 1.1 or plain javascript. The list looks like: HTML:
<ul>
<li>aaa</li>
<li>bbb</li>
<li>ccc</li>
<li>
<ul>
<li>ddd
<ul>
<li>fff</li>
<li>ggg</li>
</ul>
</li>
<li>eee</li>
</ul>
</li>
</ul>
我首先要做的是,显示第一级扩大,而其他级别则倒塌,每组清单项目被点击,以扩大下文的提纲。
Is it possible to do it without (greatly) modifying the html above? From the documentation, I see that Fx.Slide is the most appropriate, however it accepts the id of the element as a parameter, which means I have to assign id s to each list item. Is there a way by using selectors of collections of elements starting from the top?