.attr()
Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
CARVIEW |
Aspects of the API that were changed in the corresponding version of jQuery.
Dropped support for IE <11 & Edge Legacy, removed deprecated APIs, added FormData support, improved support for CSP & Trusted Types. Automatic JSONP promotion removed. Special handling of boolean attributes removed.
Callbacks & Deferred modules are now excluded from the Slim build.
jQuery is now authored in ESM.
For more information, see the jQuery Core 4.0 Upgrade guide and the Release Notes/Changelog of jQuery 4.0.0-rc.1.
Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.