[jQuery] Traversing not

[jQuery] Traversing not


I'm trying to use the function Not ():
when I run the command on the TAG "A" and works
$ (this). find ( "a"). not ( '[href ^="/"]'). attr ( "target", "YYYY")
when I run the command on the tag "IMG" not working
$ (this). find ( "img"). not ( '[src ^="/"]'). attr ( "target",
"YYYY")
what may be happening?