• Resolved Suyta

    (@suygenneris)


    Hi there
    I’m using

    jQuery(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.

    • This topic was modified 2 years, 8 months ago by Suyta.
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.