Skip to content Skip to sidebar Skip to footer

Twitter Bootstrap Close Collapsible Menu When Dropdown Menu Is Open?

I am creating a navbar for my site with Twitter Bootstrap. I usually use the Dropdown plugin for creating menus with multiple menu-items; but for the menus that I don't want to clo

Solution 1:

$('.dropdown').click(function(){
      if($('#nav-searchform').hasClass('in'))
        $('#nav-searchform').collapse('hide');
});

http://www.bootply.com/122096


Post a Comment for "Twitter Bootstrap Close Collapsible Menu When Dropdown Menu Is Open?"