Why isn't this working - using :not() with an event handler
<p>I seem to have another issue that I am not conquering. Real simple premise.
I have a mousedown event, and basically IF one particular element on the page is clicked, I want nothing to happen, else I want hide() some div.</p>

<pre><code>    $(function(){
        $("document :not(#_ignorelement)").mousedown(function(event){
                if($('#_hidethiselement').length){
                    $('#_hidethiselement').hide();
                }
        })
     })
</code></pre>

<p>That is not working at all. I also tried the following:</p>

<pre><code>    $(document).not($("#_ignorelement")).mousedown(function(event){

    $(document).not("_ignorelement").mousedown(function(event){
</code></pre>

<p>IF I can solve that, curious how I would actually have ":not" encompass the parent div, like so:</p>

<pre><code>$().not("_ignoreelement").parent().closest('div').mousedown(function
</code></pre>

<p>Because the element "_ignorelement" is an anchor tag that is in a div. Wonder how I can use the parent div perhaps, instead of the anchor tag.</p>

<p>Anyways, any help would be appreciated.</p>
