How do I exclude certain clicks from stopPropagation() ? Jquery
<p>I have a div #basket which is shown using the JQuery slideDown function.</p>

<p>To slide the div back up the use can click anywhere on the page.</p>

<pre><code>$(document).click(function () {
  $("#basket:visible").stop(true, true).slideUp("slow");
});
</code></pre>

<p>Of course I don't want the div to be closed when a user clicks inside of it. So I use:</p>

<pre><code>$("#basket").click(function (e) {

   e.stopPropagation();
});
</code></pre>

<p>Now the problem I'm having is that a form is contained in the div and this cancels ALL click functions within the div.</p>

<p>Is there a way to close this div by clicking on the page without cancelling all clicks?</p>
