Attributes

.addClass()

Adds the specified class(es) to each of the set of matched elements.

.attr()

Get the value of an attribute for the first element in the set of matched elements.

.attr()

Get the value of an attribute for the first element in the set of matched elements.

.attr()

Set one or more attributes for the set of matched elements.

.attr()

Set one or more attributes for the set of matched elements.

.hasClass()

Determine whether any of the matched elements are assigned the given class.

.html()

Get the HTML contents of the first element in the set of matched elements.

.html()

Set the HTML contents of each element in the set of matched elements.

.prop()

Get the value of a property 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.

.prop()

Set one or more properties for the set of matched elements.

.prop()

Set one or more properties for the set of matched elements.

.removeAttr()

Remove an attribute from each element in the set of matched elements.

.removeAttr()

Remove an attribute from each element in the set of matched elements.

.removeClass()

Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

.removeProp()

Remove a property for the set of matched elements.

.removeProp()

Remove a property for the set of matched elements.

.toggleClass()

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.

.val()

Get the current value of the first element in the set of matched elements.

.val()

Get the current value of the first element in the set of matched elements.

.val()

Set the value of each element in the set of matched elements.

.val()

Set the value of each element in the set of matched elements.