Click event without id or class set
<p>let me explain what i do need. I have a navigation which opens by jquery. And i would like to close it when i click anywhere in the site.</p>

<p>I found this one here, but in this case every click would close the navigation:
<a href="http://stackoverflow.com/questions/3761902/jquery-click-event-catch-all">jQuery click() event catch-all?</a></p>

<p>using</p>

<pre><code>$(document).click(function() {
  $("#boxID").hide();
});
</code></pre>

<p>But when i click within the navigation e.g. <code>id="boxnewsID"</code>, the navigation  <code>id="navID"</code> itself closes too. How can i prevent this?</p>

<p>When i try to get a id or sth. which was clicked it only gives the document (logic) back.
I have seen, that facebooks header navigation (message, activity, friendrequest) works the way i need.</p>

<p>Any idea?</p>
