Skip to content

appendTo/prependTo: correct note about appending multiple elements #687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion entries/appendTo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $( "h2" ).appendTo( $( ".container" ) );
<h2>Greetings</h2>
</div>
</code></pre>
<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>
<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>
<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>
</longdesc>
<note id="html-code-execution" type="additional"/>
Expand Down
2 changes: 1 addition & 1 deletion entries/prependTo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $( "h2" ).prependTo( $( ".container" ) );
&lt;div class="inner"&gt;Goodbye&lt;/div&gt;
&lt;/div&gt;
</code></pre>
<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>
<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>
</longdesc>
<note id="html-code-execution" type="additional"/>
<example>
Expand Down