[jQuery] Troubleshooting selectors

[jQuery] Troubleshooting selectors


This looks right to me, but isn't working like I think it should.
$("#headera #headerright
a:not([@href*=logout])").click(function(){
window.open(this.href);
return false;
});
Any link inside div#headerright inside div#headera which doesn't
target "logout" should open in a new window. Except it's triggering
for links inside div#headerright whether or not it's inside #headera.
What am I doing wrong?
-- Owen