e

jQuery DOM Reference

Last Updated Jul 21, 2015, 12:00:06 PM





jQuery DOM Reference

The following table lists all the jQuery DOM Methods.

Method Description Example
removeClass Removes the current HTMLclass element from the other HTML elements Try It
toggleClass toggle between adding and removing the HTML elements Try It
clone It will copy the current HTML element to the DOM tree Try It
detach Removes the selected HTML elements from the DOM tree. Try It
replaceWith Used to replace each HTML element with new content from matched elements in the DOM tree Try It
replceAll Replace all HTML elements in the DOM tree with new HTML elements

Try It
append Inserts specific content at the end of the selected HTMLelement. Try It
appendTo Used to insert specific content at the end of the selected HTMLelement. Try It
html html() method sets or returns the content (innerHTML) of the selected HTMLelements. Try It
text text() method sets or returns the text content of the selected HTMLelements. Try It
wrap wrap() method wraps HTML structure around each element in the group of matched HTMLelement in DOM tree. Try It
unwrap unwrap() method removes the parent element of other HTML elements. Try It
wrapAll wrapAll() method wraps HTML structure around all elements in the group of matched HTMLelement in the DOM tree. Try It
wrapInner wrapInner() method wraps around matched HTMLelement in DOM tree. Try It



Other Advanced jQuery and DOM topics you might want to learn
jQuery Basic DOM Methods

jQuery DOM Removal

jQuery DOM Insertion Inside

jQuery DOM Insertion Outside

jQuery DOM Insertion Around

Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM