Using :not selector in tandem with .on()
<p>I am attempting to select all <code>a</code> hrefs that do not have the class <code>.agency</code>:</p>

<pre><code>$("#content-listing").on("click", "a:not(li.agency a)",
    function () {
        $("#content-listing").hide();
    });
</code></pre>

<p>I also tried:</p>

<pre><code>$("#content-listing").on("click", "a.not('li.agency a')", function () {
    $("#content-listing").hide();
});
</code></pre>
