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

html - Cut text on left side inside button while centering -

java - Last square of 8x8 grid not drawn, using two nested FOR loops -

What design pattern is this code in Javascript? -