Skip to content

Commit b40db8a

Browse files
committed
appendTo/prependTo: correct note about appending multiple elements
Fixes gh-318 Closes gh-687
1 parent b73cf4b commit b40db8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

entries/appendTo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $( "h2" ).appendTo( $( ".container" ) );
5353
<h2>Greetings</h2>
5454
</div>
5555
</code></pre>
56-
<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, and that new set (the original element plus clones) is returned.</p>
56+
<p>If there is more than one target element, however, cloned copies of the inserted element will be created for each target except the last, and that new set (the original element plus clones) is returned.</p>
5757
<p><strong>Before jQuery 1.9,</strong> the append-to-single-element case did not create a new set, but instead returned the original set which made it difficult to use the <code>.end()</code> method reliably when being used with an unknown number of elements.</p>
5858
</longdesc>
5959
<note id="html-code-execution" type="additional"/>

entries/prependTo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $( "h2" ).prependTo( $( ".container" ) );
5353
&lt;div class="inner"&gt;Goodbye&lt;/div&gt;
5454
&lt;/div&gt;
5555
</code></pre>
56-
<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>
56+
<p>If there is more than one target element, however, cloned copies of the inserted element will be created for each target except the last.</p>
5757
</longdesc>
5858
<note id="html-code-execution" type="additional"/>
5959
<example>

0 commit comments

Comments
 (0)