Toggling child elements on parent click

Hey folks,
i am new at JS and jQuery and trying to make this code work. But i can’t solve the problem. when u click on parent of nested list items.It hide the unordered list too. i tried to add siblings() method but still its not working like it should i.e parent of nested li should be visible to toggle its child again. Here is the code

    $("li").has("ul li").click(function(){


I assume what you are saying is that if you click on Folio you want to toggle the <UL> but keep Folio visible.

In which case you need


Ah, thanks a ton!