jQuery Attribute Methods

Last Updated:

jQuery Attribute Methods

The following are the list of Attribute methods available in jQuery.

MethodExplanation
attr() Gets or Sets attributes and values of the selected elements.
html() Gets or Sets the html content (innerHTML) of the selected elements.
prop() Gets or Sets properties and values of the selected elements..
removeAttr() Removes one or more attributes from the selected elements.
removeProp() Removes a property for the set of matched elements.
val() Gets or Sets the value attribute of the selected elements.

Share this Page

Meet the Author