General Attributes
These methods get and set DOM attributes of elements
-
.attr()
Get the value of an attribute for the first element in the set of matched elements.
-
.prop()
Get the value of a property for the first element in the set of matched elements.
-
.removeAttr()
Remove an attribute from each element in the set of matched elements.
-
.removeProp()
Remove a property for the set of matched elements.
-
.val()
Get the current value of the first element in the set of matched elements.