Hide div when clicked anywhere but another div w/ jQuery
<p>I have the following function that hide s a certain div when I click anywhere on a page:</p>

<pre><code>$("html").click(function() {
    $(".myDiv1").addClass("hidden");
});
</code></pre>

<p>I would like to add an exception to this function. If a click is within another div, ignore this hiding... The only way for me to select the second function is to pick a distinct element withing it:</p>

<pre><code>$(".nyOtherDiv").parent()
</code></pre>

<p>How do I combine these? Or shall I just add it as a separate function below to overwrite the first one?</p>
