Class |
.addClass( className ) |
jQuery |
- |
Adds the specified class(es) to each of the set of matched elements. |
Class |
.addClass( function(index, class) ) |
jQuery |
- |
New 1.4 Adds the specified class(es) to each of the set of matched elements. |
CSS |
css( propertyName ) |
String |
.css( propertyName ) |
Get the value of a style property for the first element in the set of matched elements. |
CSS |
css( propertyName, value ) |
jQuery |
.css( propertyName, value ) |
Set one or more CSS properties for the set of matched elements. |
CSS |
css( propertyName, function(index, value) ) |
jQuery |
.css( propertyName, function(index, value) ) |
New 1.4 Set a single style property to a value on all matched elements |
CSS |
css( map ) |
jQuery |
.css( map ) |
Set a single style property to a value on all matched elements |
Class |
hasClass( class ) |
Boolean |
.hasClass( className ) |
Determine whether any of the matched elements are assigned the given class. |
Style Propreties |
height() |
jQuery |
.height() |
Get the current computed height for the first element in the set of matched elements. |
Style Propreties |
height( value ) |
jQuery |
.height( value ) |
Set the CSS height of every matched element. |
Style proprieties |
innerHeight() |
Integer |
.innerHeight() |
Get the current computed height for the first element in the set of matched elements, including padding but not border. |
Style proprieties |
innerWidth() |
Integer |
.innerWidth() |
Get the current computed width for the first element in the set of matched elements, including padding but not border. |
Positioning |
offset( ) |
Object |
offset( ) |
Get the current coordinates of the first element in the set of matched elements, relative to the document. |
Positioning |
offset( coordinates ) |
Object |
.offset( coordinates ) |
New 1.4 Set the current coordinates of every element in the set of matched elements, relative to the document. |
Positioning |
offset( function(index, coords) ) |
Object |
.offset( function(index, coords) ) |
New 1.4 Set the current coordinates of every element in the set of matched elements, relative to the document. |
Height and Width |
outerHeight( [ includeMargin ] ) |
Integer |
.outerHeight( [ includeMargin ] ) |
Get the current computed height for the first element in the set of matched elements, including padding and border. |
Height and Width |
outerWidth( [ includeMargin ] ) |
Integer |
.outerWidth( [ includeMargin ] ) |
Get the current computed width for the first element in the set of matched elements, including padding and border. |
Positioning |
position( ) |
Object{top,left} |
.position( ) |
Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. |
Class |
removeClass( [ className ] ) |
jQuery |
.removeClass( [ className ] ) |
Removes all or the specified class(es) from the set of matched elements .This method is not available on XML documents. |
Class |
removeClass( function(index, class) ) |
jQuery |
- |
New 1.4 Removes all or the specified class(es) from the set of matched elements .This method is not available on XML documents. |
Positioning |
scrollLeft( ) |
Integer |
.scrollLeft() |
Get the current horizontal position of the scroll bar for the first element in the set of matched elements. |
Positioning |
scrollLeft( value ) |
jQuery |
.scrollLeft( value ) |
Set the current horizontal position of the scroll bar for each of the set of matched elements. |
Positioning |
scrollTop( ) |
Integer |
.scrollTop() |
Get the current vertical position of the scroll bar for the first element in the set of matched elements. |
Positioning |
scrollTop( value ) |
jQuery |
.scrollTop( value ) |
Set the current vertical position of the scroll bar for each of the set of matched elements. |
Class |
toggleClass( className ) |
jQuery |
.toggleClass( className ) |
Add or remove a class from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. |
Class |
toggleClass( className, switch ) |
jQuery |
.toggleClass( className, switch ) |
Add or remove a class from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. |
Class |
toggleClass( function(index, class), [ switch ] ) |
jQuery |
.toggleClass( function(index, class), [ switch ] ) |
New 1.4 Add or remove a class from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. |
Class |
width() |
Integer |
.width() |
Get the current computed width for the first element in the set of matched elements. |
Class |
width( value ) |
jQuery |
.width( value ) |
Set the CSS width of each element in the set of matched elements. |