jquery sliding panel menu problem
There is a simple solution to this, I however have not been able to execute it correctly.
I have a top level navigation (that is dynamically populated) that when clicked reveals a hidden panel. This works. The problem is when another menu item is clicked, that panel is stacked on any panels that are already open. How do I close any open panels first before opening another one.
Below is my code:
Any help is greatly appreciated
You could add an additional couple of lines to hide the other panel, and use the callback on the hide to call the slideToggle:
If you do intend to have more than one I'd redo your html so that the lists within the sidepanel are nested within the top level lists - so it becomes more like a standard drop down menu, then add some jQuery for the animation - it'll take a bit more effort initially but might be easier in the long term.
|All times are GMT +1. The time now is 01:13 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.