title: onClickOut (click after leaving the element)
body: <p>The problem was that I need a <b>"onClickOut"-Event</b>.</p>
  
  <p>For example:
  You have a DIV viewing on hovering (onMouseOver) some Button or what ever.</p>
  
  <p>If you click outside the element it needs to hide, but if you say <i>$("body").click</i> it also will be hidden when you click into the element itself. :/</p>
  
  <p>Now I listen the mouseposition and when <i>mouseleave()</i> I set a var on clicking into my element. In the next step I listen a generelly click-event (body) but I ask if the var was set. If not it has to be a click outside my element, so I can hide my element.</p>
  
  <p>I hope you can use it:</p>
  
  <pre><code>$("#schnellsuche_box").mouseleave(function() {
      var inside;
      $("#schnellsuche_box").click(function() {
          inside = true;
      });
      $("body").click(function() {
          if(!inside) {
              $("#schnellsuche_box").hide();
          }
      });
      delete inside;
  });
  </code></pre>