last day (15 days later) » 

7:53 PM
1
A: multilevel dropdown menu toggle not working using jquery

colepanikeOk I've got a working version: Fiddle The Fix: $(function () { $('#megaUber').find('a').click(function (e) { e.stopPropagation(); $(this).parent().toggleClass("active"); }); }); And this bit of CSS needed actives changed to active .mobile-menu #megaMenu #megaUber > li >...

 
@colpanke thanks for the nice solution but I've still got the problem in my site don't know why but it's still there. let me share my site with you so that you can understand it clearly. I'm testing it for responsive navigation. while opening the menu the first toggle works then clicking on the megaUber a it's working but inside there are more ul li nested these are not working in my site don't know why can u suggest me why it's not working? here's the link of the site: allwhite3000.co.uk
 
Which links have the double submenus?
 
treatments->teeth whitening->there are several ones ...
 
They work for me. I'm afraid at this point you're asking for me to debug your site for you and that is not appropriate for this format, not to mention that it's a wordpress and therefor a nightmare to debug without admin access. The problem is most likely do to some misconfiguration on your part :\ Sorry. You shouldn't have to mess with the javascript at all to do this. My answer is correct for what you actually asked though. I would appreciate you marking it as such.
 
sorry for the wrong information it's working actually. but the thing is while opening the other ul from li you can see that both ul's are open but i want one to be open not all of them that's why i've coded the previous version. do you think you can help me sought that out?
 
7:53 PM
So you want to have the first sub-menu disappear when you open the second sub-menu?
 
yes i would need that with this working you know
 
What you are attempting is a major change to the functionality of this plugin. You'd be better off finding one that's already designed with this sort of thing in mind. This is a good option, but I've no idea if it's been made into a wp plugin: tympanus.net/Development/ResponsiveMultiLevelMenu
 
about this site it's full of unnecessary or necessary js for which responsive uber menu is not working properly also i've tested many other plugins for the responsive one but not working for the theme work. i've just got this issue from my client that's why i've stucked in here. he only want this menu to be there so everything is ok but this is the new problem by clicking the other sub-menu the first one should disable that's the thing should done the work & my query also if it's not bothering you.
 
Are you there?
 
yes
i'm here
 
7:55 PM
I've provided you the rep bump you needed to get here, but your question does need work. Just an FYI
Now, I did not understand your last comment. Are you a native english speaker?
 
i'm not a native english speaker
your solution is correct for the asked question
 
I thought maybe not. Please be careful to use punctuation as best you can, I can't tell where one statement ends and the next begins.
I would still like to help you out
 
thanks for the help.
 
What is the problem do you think?
 
i want the first sub-menu disappear when i open the second sub-menu
that's the last issue
 
8:00 PM
Ok that is what I thought. I do not think UberMenu does this. You would have to use another menu to make this look nice. I will however see if I can make your code do this, and let you figure out the rest?
 
yes ubermenu do this actually
there are some fault in theme for that ubermenu is not working properly
so for making ubermenu work like that i'd hard code the script into the theme
that's the solution i've found
now if you can help me by making your code snippet do this work also ?
 
I'm attempting.
 
ok
 
8:15 PM
No matter what I do hiding the parent li hides the children lis as well
I expected as much
 
ok so there's no way to do such things with jquery ?
 
Oh it can be done, but its tricky. It gets trickyer as you work on it too. What you should try to do is not hide the first menu, but animate it's height down to zero. I can try that. I'll keep picking at it for a bit but it may not be until tonight or later. Sorry.
 
it's ok
you've helped me a lot
will be waiting for your response for this.
i want to know how can it be done
must learn to do this it'll be helpful for my next projects also
just answer your solution if you find one in the questions i'll take a look from there
 

last day (15 days later) »