title: When I click anywhere in body toggle jQuery hide automatically
body: <p>I use show hide Slide toggle for hide my login panel.
  When I click on LogIn button it shows and when I again click in logIn button it hides, but I want that when I click on logIn button it show and when I click anywhere in body it hide automatically. </p>
  
  <pre><code>&lt;script src="js/jquery-1.9.1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
      $('#showmenu').click(function() {
              $('.login-wrapper').slideToggle();
      });
  });
  &lt;/script&gt;
  </code></pre>