hide div if clicked outside of it
<p>I’m having a little trouble with this JQuery function.</p>

<p>Basically, I have a div, that when clicked, shows another Div. It’s set to a toggle, actually, so it toggles on/off when you click.</p>

<p>I want to have it where if you click on anywhere outside of the opened div (that appears after you click on the first div), the div that was opened is closed.</p>

<pre><code>$("#idSelect").click(function() {
   $("#idDiv").toggle();
});
</code></pre>
