How do I perform an action on mousedown when a certain element is NOT clicked
<p>Below is the code that I want to execute a command if the click is not on the rl_menu / any of it's child elements (.comment, .rl_arrow, etc)</p>

<pre><code>TBR.mouse_down = function(e){
    target = $j(this)
    if (target != $j("#rl_menu") &amp;&amp; target != $j("#rl_menu .comment") &amp;&amp;
    target != $j("#rl_menu .change") &amp;&amp; target != $j("#rl_menu .rl_arrow_border") &amp;&amp;
    target != $j("#rl_menu .rl_arrow")){
        TBR.Menu.hide(); // this needs to be triggered when the menu is not clicked on.
    }
}
</code></pre>

<p>but when I inspect target, target is the document.</p>

<p>To recap:</p>

<p>Anywhere in the document, when the mouse is pressed, <code>TBR.Menu.hide()</code> should be executed. but if the click is within <code>#rl_menu</code>, <code>TBR.Menu.hide()</code> shouldn't be executed.</p>

<p>Am I going about this the wrong way?</p>
