Here is what I am doing.
I am displaying a box, after click at a link CSS
#toshow { display:none; }
HTML
<a href="#" id="mylink" >Link</a>
<div id="toshow">Here is my content</div>
Jquery
$(document).ready(function() {
$("#mylink").click(function() {
$("#toshow").show();
});
});
Now I want to catch a event, where the user clicks the mouse, and if the portion the user is clicking is not either the link or the division, then the division should hide again.
How to do this?