Is it a deprecated selector?
From jQuery selectors:
Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work again.
It's an attribute selector that will find all <img>
elements with a rel
attribute equal to the value to the right of the =
sign.
And yes, the @
portion was deprecated as of jQuery 1.2 and removed completely in 1.3. Now you'd just use "img[rel=...]"
.
@
used to be required in attribute selectors, but no longer in jQuery 1.2 + and removed in jQuery 1.3
It was deprecated in version 1.2 and removed in version 1.3.
From the jQuery selector documentation
Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work again.