2013-01-22, 22:52:32
Well, that's nice and all, but I want ALWAYS display only (and only) submenu (child) items after clicking on „closed“ top menu item – not to add new <ul> to existing menu, but always completely replace whole navigation with child items.
consider this:
<ul id="nav">
<li>item1</li>
<li class="closed">item 2</li> (this contains subpages)
</ul>
After clicking on "closed" item 2 I would like to achieve this:
<ul id="nav">
<li>item 2</li> (previously clicked top page with link working like „back“ button – returning back to top, original menu)
<li>subpage 1</li>
<li>subpage 2</li>
<li class="closed">subpage 3</li> (again, containg subpages)
</ul>
Is this possible? Currently, what I get is only appending new <ul> element to Menu element containg subpages. ie:
<li class="open">item 2
<ul>
<li>subpage 1</li>
<li>subpage 2</li>
</ul>
</li>
consider this:
<ul id="nav">
<li>item1</li>
<li class="closed">item 2</li> (this contains subpages)
</ul>
After clicking on "closed" item 2 I would like to achieve this:
<ul id="nav">
<li>item 2</li> (previously clicked top page with link working like „back“ button – returning back to top, original menu)
<li>subpage 1</li>
<li>subpage 2</li>
<li class="closed">subpage 3</li> (again, containg subpages)
</ul>
Is this possible? Currently, what I get is only appending new <ul> element to Menu element containg subpages. ie:
<li class="open">item 2
<ul>
<li>subpage 1</li>
<li>subpage 2</li>
</ul>
</li>