title: Animate a div on document click
body: <p>I am using this code for animate a div form right to left. (like showing a feedback area). it have 2 divisions 1. Click Here 2. Animate Division.
  Now the animation happens only if we click that click here div.
  How it will animate(hide) on document click?</p>
  
  <pre><code> $(function () {
      $("#clickme").toggle(function () 
      {
          $("#slideouts").animate({right:'0px'}, {queue: false, duration: 500});
      }, 
      function () 
      {
          $("#slideouts").animate({right:'-282px'}, {queue: false, duration: 500});
      });
  
  
  });
  </code></pre>