CARVIEW |
Attributes
These methods get and set DOM attributes of elements.
-
.addClass()
Class Attribute, CSSAdds the specified class(es) to each of the set of matched elements.
-
.attr()
General AttributesGet the value of an attribute for the first element in the set of matched elements.
-
.hasClass()
Class Attribute, CSSDetermine whether any of the matched elements are assigned the given class.
-
.html()
DOM Insertion, InsideGet the HTML contents of the first element in the set of matched elements.
-
.prop()
General AttributesGet the value of a property for the first element in the set of matched elements.
-
.removeAttr()
General AttributesRemove an attribute from each element in the set of matched elements.
-
.removeClass()
Class Attribute, CSSRemove a single class, multiple classes, or all classes from each element in the set of matched elements.
-
.removeProp()
General AttributesRemove a property for the set of matched elements.
-
.toggleClass()
Class Attribute, CSSAdd 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()
Forms, General AttributesGet the current value of the first element in the set of matched elements.
jQuery API
-
Keyboard navigation now available! Use up, down, tab, shift+tab, shift+upArrow and enter to navigate.
Browse the jQuery API
© 2012 The jQuery Foundation
Sponsored by Media Temple and others.