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
Post a Comment