jQuery-Referenzhandbuch - Dokumentoperationen

jQuery document manipulation methods

These methods are applicable to both XML and HTML documents, except for: html().

Method Description
addClass() Add the specified class name to the matched elements.
after() Insert content after the matched elements.
append() Insert the specified content at the end of each element of the matched element collection.
appendTo() Insert each element of the matched element collection at the end of the target.
attr() Set or return the attributes and values of the matched elements.
before() Insert content before each matched element.
clone() Create a copy of the matched element collection.
detach() Remove the matched element collection from the DOM.
empty() Remove all child nodes from the matched element collection.
hasClass() Check if the matched elements have the specified class.
html() Set or return the HTML content of the matched element collection.
insertAfter() Insert the matched elements after another specified element collection.
insertBefore() Insert the matched elements before another specified element collection.
prepend() Insert the specified content at the beginning of each element of the matched element collection.
prependTo() Insert each element of the matched element collection at the beginning of the target.
remove() Remove all matched elements.
removeAttr() Remove specified attributes from all matched elements.
removeClass() Remove all or specified classes from all matched elements.
replaceAll() Replace all matched elements with the matching elements.
replaceWith() Replace the matched elements with new content.
text() Set or return the content of the matched elements.
toggleClass() Fügt oder entfernt eine Klasse aus den übereinstimmenden Elementen.
unwrap() Entfernt und ersetzt den übergeordneten Element des angegebenen Elements.
val() Legt fest oder gibt den Wert der übereinstimmenden Elemente zurück.
wrap() Die übereinstimmenden Elemente werden mit angegebenem Inhalt oder Element verpackt.
wrapAll() Alle übereinstimmenden Elemente werden mit angegebenem Inhalt oder Element verpackt.
wrapinner() Jedes übereinstimmende Element wird mit angegebenem Inhalt oder Element verpackt.