Attributes
-
.addClass()
Attributes | Class Attribute | CSS
Adds the specified class(es) to each of the set of matched elements.
-
.attr()
Attributes | General Attributes
Get the value of an attribute for the first element in the set of matched elements.
-
.hasClass()
Attributes | Class Attribute | CSS
Determine whether any of the matched elements are assigned the given class.
-
.html()
Attributes | DOM Insertion, Inside
Get the HTML contents of the first element in the set of matched elements.
-
.prop()
Attributes | General Attributes
Get the value of a property for the first element in the set of matched elements.
-
.removeAttr()
Attributes | General Attributes
Remove an attribute from each element in the set of matched elements.
-
.removeClass()
Attributes | Class Attribute | CSS
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
-
.removeProp()
Attributes | General Attributes
Remove a property for the set of matched elements.
-
.text()
DOM Insertion, Inside | Attributes
Get the combined text contents of each element in the set of matched elements, including their descendants.
-
.toggleAttr()
Add or remove a attribute from each element in the set of matched elements.
-
.toggleClass()
Attributes | Class Attribute | CSS
Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
-
.toggleProp()
Add or remove a property from each element in the set of matched elements.
-
.toJSON()
Transform the first element in the set of matched elements to JSON format.
-
.val()
Attributes | Forms | General Attributes
Get the current value of the first element in the set of matched elements.
-
.xml()
Attributes | DOM Insertion, Inside
Get the XML contents of the first element in the set of matched elements.