ドキュメント

API/1.1.2/Manipulation

From jQuery JavaScript Library

(Redirected from DOM/Manipulation)
Jump to: navigation, search

This is an old version of the Manipulation API:
View the Current API

NameType
Inserting Inside:

NameType
append( content )Returns: jQuery
Append content to the inside of every matched element.
appendTo( selector )Returns: jQuery
Append all of the matched elements to another, specified, set of elements. As of jQuery 1.3.2, returns all of the inserted elements.
prepend( content )Returns: jQuery
Prepend content to the inside of every matched element.
prependTo( selector )Returns: jQuery
Prepend all of the matched elements to another, specified, set of elements. As of jQuery 1.3.2, returns all of the inserted elements.
Inserting Outside:

NameType
after( content )Returns: jQuery
Insert content after each of the matched elements.
before( content )Returns: jQuery
Insert content before each of the matched elements.
insertAfter( selector )Returns: jQuery
Insert all of the matched elements after another, specified, set of elements. As of jQuery 1.3.2, returns all of the inserted elements.
insertBefore( selector )Returns: jQuery
Insert all of the matched elements before another, specified, set of elements. As of jQuery 1.3.2, returns all of the inserted elements.
Inserting Around:

NameType
wrap( html )Returns: jQuery
Wrap each matched element with the specified HTML content.
wrap( elem )Returns: jQuery
Wrap each matched element with the specified element.
Removing:

NameType
empty( )Returns: jQuery
Remove all child nodes from the set of matched elements.
remove( expr )Returns: jQuery
Removes all matched elements from the DOM.
Copying:

NameType
clone( )Returns: jQuery
Clone matched DOM Elements and select the clones.
clone( bool )Returns: jQuery
Clone matched DOM Elements, and all their event handlers, and select the clones.