When my site is on small screens and shows a navbar collapsed toggle button, I wrote some jquery to hide the navbar upon a click of menu item, then upon clicking the navbar toggle button again I wanted it to simply show itself again so the user could choose another menu item. What happens is that after the first hide() event, it takes 2 clicks of the navbar toggle button to display the menu. How can I get it so that there is only 1 click needed? Here is code and link to site:
$('.select').on('click', function() {
$('#navigation').hide();
});
$('.navbar-toggle').on('click', function() {
$('#navigation').show();
});
http://mattparmanswebsites.herokuapp.com/ (shrink screen below width of 700 to see collapsed menu issue)