title: How to close a modal by clicking outside the modal window?
body: <p>In a very simple jQuery modal, I close the modal by clicking on CLOSE as</p>
  
  <pre><code>$('#close').click(function(e) {
    e.preventDefault();
    $('#overlay, #alertModalOuter').fadeOut(400, function() {
       $(this).remove();
    });
  });
  </code></pre>
  
  <p>How can I close the modal by clicking whether on CLOSE button (which is inside the modal windows) OR clicking anywhere outside the modal window.</p>