Keeping Dropdown Sub Menus Open
Hello,
I'm pretty new to this. Got a navigation menu which has a few sub menus in it which animate nicely based on the following script:
<!--//---------------------------------+
// Developed by Roshan Bhattarai
// This notice MUST stay intact for legal use
// --------------------------------->
$(document).ready(function () {
//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked
$("#firstpane p.menu_head").click(function () {
$(this).css().next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
$(this).siblings().css();
});
});
What I need is for the relevant menu body to stay open when the user navigates to one of it's pages, rather than all the submenus be closed again after every page loads.
Any help much appreciated.
Cheers