jquery - Mmenu don't change section on click -
i study how work menu. can not understand structure of page. didn't find simple sample on official page. nowhere.
i have 2 menu item href #div1 , #div2 have div id=div1 , div id=div2
i click on button 1, button2 - nothing do. see div1 , div2
what must see div1 when click button 1 , div2 when clicl button 2? tried fire onclick event, mmenu didn't work after this. how must organize body enable different section when menu click?
thank much!!!!
i won!
now can use jquery hide/show sections.
here recipe:
$(document).ready(function(){ var api = $("#menu").data( "mmenu" ); api.bind( "setselected:after", function( $panel ) { console.info( "clicked..."); console.info($panel.attr("id")); }); });
Comments
Post a Comment