Skip to content

Commit e482af6

Browse files
Timotheekswedberg
authored andcommitted
append() clones for all elements but the last one, not first. Closes jquery#344
1 parent b03d09a commit e482af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/append.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $( ".container" ).append( $( "h2" ) );
6666
<h2>Greetings</h2>
6767
</div>
6868
</code></pre>
69-
<p>If there is more than one target element, however, cloned copies of the inserted element will be created for each target after the first.</p>
69+
<p>If there is more than one target element, however, cloned copies of the inserted element will be created for each target except for the last one.</p>
7070
<h4 id="additional-arguments">Additional Arguments</h4>
7171
<p>Similar to other content-adding methods such as <code><a href="/prepend/">.prepend()</a></code> and <code><a href="/before/">.before()</a></code>, <code>.append()</code> also supports passing in multiple arguments as input. Supported input includes DOM elements, jQuery objects, HTML strings, and arrays of DOM elements.</p>
7272
<p>For example, the following will insert two new <code>&lt;div&gt;</code>s and an existing <code>&lt;div&gt;</code> as the last three child nodes of the body:</p>

0 commit comments

Comments
 (0)