title: javascript div closing problem
body: <p>I have a div that opens when user clicks link. And the div sort hovers over the link (its a more info box/div) and the div has a links and text. Now what I want is that when user cliks outside of the div it closes/disappears. But I want the links inside of div to work. Atm the javascript for that closin is like this:</p>
  
  <pre><code>$('html').click( function() {
     $('#moreInfo').hide();                                           
  });
  </code></pre>
  
  <p>But the problem is that when user clicks the link inside of that #moreInfo the link doesn't work and the div just closes (it should go to different page from that link, not close the div).</p>