Hey,
My friend wrote me code for collapsible menu, when pressing one section closes another.
The problem is, when I choose a project from the section's list of projects, the section automatically closes, instead of stay open and let me go through the list.
Hope you can help me.
noadol.com
This is the code, and it's located inside index.php
Thanks,
$(function() {
$("#menu ul:not('.copyrights') li:not('.section-title'):visible").hide(0);
$("#menu ul li.section-title").click(function(){
var menu=$(this).parent();
if (menu.find("li:animated").length>0) return;
if (menu.is(".copyrights")) return;
if (menu.find("li:gt(0):visible").length>0)
menu.find("li:gt(0):visible").hide(500);
else
menu.find("li").show(500);
menu.siblings().find("li:gt(0):visible").hide(500);
});
});