I am trying to make an Ajax call on all <a>elements inside id #filterthat do not have a class .noAjax, and somehow I cannot get it to work. can anyone take a look at my syntax please?
$("#filter").not($("a.noAjax")).delegate("ul#portfolio-list li a", "click", function() {
if ($.browser.msie) {
location.hash = "#/" + this.pathname;
} else {
location.hash = this.pathname;
}
return false;
});
when I try to just use aor a.ajax(which, of course, is added before the attempt) as a selector for .delegate, nothing works at all. with jquery ajax works, but it tries to load the content even when I click the link witha.noAjax
source
share