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
Post a Comment