Open Submenu Onclick
-
Hi there
I’m usingjQuery(function($) { $('a.open-a-panel').on('click', function(e) { e.preventDefault(); var panelToShow = $("#mega-menu-item-2515 > a.mega-menu-link"); $('#mega-menu-max_mega_menu_1').data('maxmegamenu').showPanel(panelToShow); }); });
To open submenu clicking on certain link.
It add class correctly but immediately it is removed so the submenu never opens.
Please help.
Thanks in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Open Submenu Onclick’ is closed to new replies.