jQuery Arrays and a Dropdown Menu -


i've been looking around , feel i'm jumping learning curve here , head explode searching , coming nothing.

my problem have horizontal menu, designed unordered lists, , make dropdown menu nested unordered lists in first unordered list.

<ul class="top-level">    <li><a href="#"></a>        <ul class="dropdown">           <li><a href="#"></a>           </li>        <ul>    <li> </ul> 

now, nested unordered list set "display:none;".

since have dropdown lists in same class, when try toggle 'display:none;' attribute 'display: block' of dropdown lists toggled.

i know can put each of dropdown lists own seperate classes, there way array? able click on top-level list item , bring appropriate dropdown list.

thanks help

$("ul.top-level li").click(function(event) {     $(this).find("ul.dropdown").toggle(); }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -