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.

http://www.mackeyshotrods.com/store/?page_id=2

$(document).ready(function () {     $("#na ul li").click(function () {          $(this).siblings().find('ul').slideup(400);             $(this).find('ul').slidetoggle('fast');              }); }); 

demo:

http://jsfiddle.net/7p3df/1/


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -