I am attempting to select all a hrefs that do not have the class .agency:
$("#content-listing").on("click", "a:not(li.agency a)",
function () {
$("#content-listing").hide();
});
I also tried:
$("#content-listing").on("click", "a.not('li.agency a')", function () {
$("#content-listing").hide();
});
After your comment:
Then Use this: