menu - How to close expanded mobile top bar in Foundation via jQuery? -


i'm wondering if there someway close expanded topbar in foundation on click on 1 of items? guess i'm looking put in center of this:

$('#some-menu-item').click(function() {     //some function collapse menu }); 

figured out lifting lines 174-176 of foundation's topbar.js.

$('#some-menu-item').click(function() {     $('.top-bar, [data-topbar]').css('height', '').removeclass('expanded'); }); 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -