jQuery attr() method
The attr() method sets or returns the attributes and values of the selected elements. When this method is used to
return the attribute value, it returns the value of the FIRST matched
element. When this method is used to set attribute values, it sets one or more
attribute/value pairs for the set of matched elements.
Syntax:
|
$(selector).prop(property)
|