Check out the fiddle. I have a basic Bootstrap 3 responsive nav like so:
&
With Bootstrap 3.3.4 I realized my old way quit working. Updated it to:
if ($('div.navbar-collapse').hasClass('in')) { $('button.navbar-toggle:visible').click(); }