title: How to detect a click on anything other than this one div in jQuery?
body: <p>I want to hide a div with the class "myProfile" when the user clicks anywhere outside that div. How can I do this? </p>
  
  <p>I have this so far but obviously it says hide the div when the user clicks on it instead of "outside" it:</p>
  
  <pre><code>$('.myProfile').click(function() {
      $(this).hide();
  });
  </code></pre>