To see what is the trouble see code on jsFiddle.Is there a way to set list with class “menutop” to act like “toogle” class (+), in other words when click Posts, pages and so on submenu is revealed.
Second thing that bothers me is how to set menu to behave in way that when one submenu is opened, and user click some other submenu, the previous opened to be closed automatical.
I named the function in the toogle handler and called it from menutop setting the toggle class element as “this” so it looks more familiar to you.
I just added a line that ensures that only one section could be open at a time