[jQuery] Need help with the CSS selector - :not()

[jQuery] Need help with the CSS selector - :not()

Hi
I'm trying to get all links from the body in a page and in the same time
excluding a single element with the matching href attribute using the
:not css-selector but it does'nt seem to be working.
Is this not supported in the latest jQuery (1.0.1) or is there
something wrong with my code? The expression returns all links matching
the rel but also returns the one with the matching href.
I know I could simply insert a: if (this.href != src) in the function to
fix this but for my purposes the best way to do it is directly using jquery.
I'd be grateful for advices on this.
---
$('body a[@rel=' + rel + ']:not([@href=' + src +'])').each(function() {
alert(this.href + '\n' + src);
});
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/