Inserting Outside |
addClass( className ) |
jQuery |
.addClass( className ) |
Adds the specified class(es) to each of the set of matched elements. |
Inserting Outside |
addClass( function(index, class) ) |
jQuery |
.addClass( function(index, class) ) |
New 1.4 Adds the specified class(es) to each of the set of matched elements. |
Inserting Outside |
after( content ) |
jQuery |
.after( content ) |
Insert content, specified by the parameter, after each element in the set of matched elements. |
Inserting Outside |
after( function ) |
jQuery |
.after( function ) |
New 1.4 Insert content, specified by the parameter, after each element in the set of matched elements. |
Inserting Inside |
append( content ) |
jQuery |
.append( content ) |
Insert content, specified by the parameter, to the end of each element in the set of matched elements. |
Inserting Inside |
append( function(index, html) ) |
jQuery |
.append( function(index, html) ) |
New 1.4 Insert content, specified by the parameter, to the end of each element in the set of matched elements. |
Inserting Inside |
appendTo( target ) |
jQuery |
.appendTo( target ) |
Insert every element in the set of matched elements to the end of the target. |
General Attributes |
.attr( attributeName ) |
String |
.attr( attributeName ) |
Get the value of an attribute for the first element in the set of matched elements. Attributes include title, alt, src, href, width, style, etc. |
General Attributes |
.attr( attributeName, value ) |
jQuery |
.attr( attributeName, value ) |
Set one or more attributes for the set of matched elements. |
General Attributes |
.attr( map ) |
jQuery |
.attr( map ) |
Set one or more attributes for the set of matched elements. |
General Attributes |
.attr( attributeName, function(index, attr) ) |
jQuery |
.attr( attributeName, function(index, attr) ) |
Set one or more attributes for the set of matched elements. |
Inserting Outside |
.before( content ) |
jQuery |
.before( content ) |
Insert content, specified by the parameter, before each element in the set of matched elements. |
Inserting Outside |
.before( function ) |
jQuery |
.before( function ) |
New 1.4 Insert content, specified by the parameter, before each element in the set of matched elements. |
Copying |
clone( [ withDataAndEvents ] ) |
jQuery |
.clone( [ withDataAndEvents ] ) |
Create a copy of the set of matched elements. |
Removing |
css( propertyName ) |
String |
.css( propertyName ) |
Get the value of a style property for the first element in the set of matched elements. |
Removing |
css( propertyName, value ) |
jQuery |
.css( propertyName, value ) |
Set one or more CSS properties for the set of matched elements. |
Removing |
css( propertyName, function(index, value) ) |
jQuery |
.css( propertyName, function(index, value) ) |
New 1.4 Set one or more CSS properties for the set of matched elements. |
Removing |
css( map ) |
jQuery |
.css( map ) |
Set one or more CSS properties for the set of matched elements. |
Removing |
detach( [ selector ] ) |
jQuery |
.detach( [ selector ] ) |
New 1.4 Remove the set of matched elements from the DOM. |
Removing |
empty() |
jQuery |
.empty() |
Remove all child nodes of the set of matched elements from the DOM |
Class |
hasClass( class ) |
Boolean |
.hasClass( className ) |
Determine whether any of the matched elements are assigned the given class. |
Removing |
height() |
jQuery |
.height() |
Get the current computed height for the first element in the set of matched elements. |
Removing |
height( value ) |
jQuery |
.height( value ) |
Set the CSS height of every matched element. |
HTML |
html( ) |
String |
.html() |
Get the HTML contents of the first element in the set of matched elements. This method is not available on XML documents. |
HTML |
html( htmlString ) |
jQuery |
.html( htmlString ) |
Set the HTML contents of each element in the set of matched elements. This method is not available on XML documents. |
HTML |
html( function(index, html) ) |
jQuery |
.html( function(index, html) ) |
New 1.4 Set the HTML contents of each element in the set of matched elements. This method is not available on XML documents. |
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. |
Inserting Outside |
insertAfter( target ) |
jQuery |
.insertAfter( target ) |
Insert every element in the set of matched elements after the target. |
Inserting Outside |
insertBefore( target ) |
jQuery |
.insertBefore( target ) |
Insert every element in the set of matched elements before the target. |
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. |
Inserting Inside |
position() |
Object |
.position() |
Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. |
Inserting Inside |
prepend( content ) |
jQuery |
.prepend( content ) |
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. |
Inserting Inside |
prepend( function(index, html) ) |
jQuery |
.prepend( function(index, html) ) |
New 1.4 Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. |
Inserting Inside |
prependTo( target ) |
jQuery |
.prependTo( target ) |
Insert every element in the set of matched elements to the beginning of the target. |
Inserting Inside |
remove( [ selector ] ) |
jQuery |
.remove( [ selector ] ) |
Remove the set of matched elements from the DOM. |
Attr |
removeAttr( name ) |
jQuery |
.removeAttr( attributeName ) |
Remove an attribute from each element in the set of matched elements. |
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. |
Replacing |
replaceAll() |
jQuery |
.replaceAll() |
Replace each target element with the set of matched elements. |
Replacing |
replaceWith( content ) |
jQuery |
- |
Replace each element in the set of matched elements with the provided new content. |
Replacing |
replaceWith( newContent ) |
jQuery |
.replaceWith( newContent ) |
Replace each element in the set of matched elements with the provided new content. |
Replacing |
replaceWith( function ) |
jQuery |
.replaceWith( function ) |
New 1.4 Replace each element in the set of matched elements with the provided new content. |
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. |
Changing Contents |
text() |
String |
.text() |
Get the combined text contents of each element in the set of matched elements, including their descendants. |
Changing Contents |
text( textString ) |
jQuery |
.text( textString ) |
Set the content of each element in the set of matched elements to the specified text. |
Changing Contents |
text( function(index, text) ) |
jQuery |
.text( function(index, text) ) |
New 1.4 Set the content of each element in the set of matched elements to the specified text. |
Changing Contents |
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. |
Changing Contents |
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. |
Changing Contents |
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. |
Changing Contents |
unwrap() |
jQuery |
.unwrap() |
New 1.4 Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. |
Changing Contents |
val() |
String, Array |
.text() |
Get the current value of the first element in the set of matched elements. |
Changing Contents |
val( value ) |
String |
.val( value ) |
Set the value of each element in the set of matched elements. |
Changing Contents |
val( function ) |
String |
.val( function ) |
Set the value of each element in the set of matched elements. |
Changing Contents |
width() |
Integer |
.width() |
Get the current computed width for the first element in the set of matched elements. |
Changing Contents |
width( value ) |
jQuery |
.width( value ) |
Set the CSS width of each element in the set of matched elements |
Changing Contents |
wrap( wrappingElement ) |
jQuery |
.wrap( wrappingElement ) |
Wrap an HTML structure around each element in the set of matched elements. |
Changing Contents |
wrap( wrappingFunction ) |
jQuery |
.wrap( wrappingFunction ) |
New 1.4 Wrap an HTML structure around each element in the set of matched elements. |
Changing Contents |
wrapAll( wrappingElement ) |
jQuery |
.wrapAll( wrappingElement ) |
Wrap an HTML structure around all elements in the set of matched elements. |
Changing Contents |
wrapInner( wrappingElement ) |
String |
.wrapInner( wrappingElement ) |
Wrap an HTML structure around the content of each element in the set of matched elements. |
Changing Contents |
wrapInner( wrappingFunction ) |
String |
.wrapInner( wrappingFunction ) |
New 1.4 Wrap an HTML structure around the content of each element in the set of matched elements. |