Prevent Multiple jQuery Menus From Being Triggered -


I'm new to jQuery, and there is a problem with implementing several instances of a menu on the page This problem is quite Simple: Click on a menu and they are all open. I have been mixed with other posts which I have to go through (I think?) Dome and either engages a class in each menu or something similar.

$ (document) .ready (function () {

  $ (". Submenu"). Hover (function () {$ (".sub"). Slide Toggle (250);}, Function () {$ (". Sub") .hide ();}  

);});

Here jsfiddle: (Forget the layout for now, just a quick copy paste)

What am I missing? thank you in advanced!

change $ (".sub") to $ ( "Sub.", This) period.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -