How to go to the highest parent using jquery.mmenu -


i have created menu using jquery.mmenu. have submenu's within menu's , functionality works expected. jquery.mmenu can go closest parent. want add new link allow user go upper parent in 1 go.

so lets have menu this: food --> drinks --> soft drinks --> coca cola if user @ coca cola level, want link brings user food. how solve this?

i got answer jquery.mmenu developer directly (frdh)

   var $menu = $("#my-menu").mmenu();     var api = $menu.data( "mmenu" );      $("#some-elem").on("click", function() {         api.closeallpanels();     }); 

he admitted somehow not in api docs yet. add later on.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -