javascript - Drop down menu toggle -
i'm making site that's responsive. when page <=830px of page changes.
i need figuring out way toggle sub menus 1 @ time. wordpress generates same .sub-menu class name each submenu.
i'm using code toggle menus both go @ same time. need make browser less 830px see i'm talking about.
$(".about").click(function() { $(".sub-menu").slidetoggle("fast"); return false; }); //.click $(".projects").click(function() { $(".sub-menu").slidetoggle("fast"); return false; }); //.click
thank help.
$(document).ready(function () { $("#na ul li").click(function () { $(this).siblings().find('ul').slideup(400); $(this).find('ul').slidetoggle('fast'); }); });
demo:
Comments
Post a Comment