title: jQuery on click $(document) - get clicked element
body: <p>I'm trying to figure out how to get the clicked element whey using $(document).click() method:</p>
  
  <pre><code>$(document).click(function() {
      if ($(this) !== obj) {
          obj2.hide();
      }
  });
  </code></pre>
  
  <p>In the example above the <strong>obj</strong> is the object is the dropdown menu - and if clicked I don't want it to do anything, but if the click was on the body of the page or any other element - it should trigger the hide() method.</p>