jQuery submenu like an accordion
问题 on the webpage oshadi-yoga.ch i like to get an navigation menu with a list like this: <ul> <li class="section-title">Yoga <ul style="display: none;"> <li><a href="/">Approach</a></li> <li><a href="/">Asanas</a></li> <li><a href="/">Yoga</a></li> <li><a href="/">Kirtan</a></li> </ul> </li> </ul> i wrote some jquery to get an accordion effect. if you click the first level the second list shall open with an toggle effect: $(function() { $("#lbar li.section-title ul").hide(); $("#lbar li.section