Bootstrap left sidebar toggle menu
<p>I got a script for Bootstrap sidebar toggle menu. It works fine for my needs.</p>

<p>Right now the menu is toggling using Toggle Menu button, that is fine.But I need to close the menu if I click, out side of it.</p>

<p>Please check <strong><a href="https://jsfiddle.net/5j3mypcs/" rel="nofollow">this Fiddle </a></strong></p>

<p>and help me out. Thanks.</p>

<pre><code>$("#menu-toggle").click(function(e) {
     e.preventDefault();
     $("#wrapper").toggleClass("toggled");
});
</code></pre>