Insert every element in the set of matched elements to the end of the target.
Element to append elements to.
The instance itself.
$('<li class="plum">Plum</li>').appendTo('#fruits');$.html();//=> <ul id="fruits">// <li class="apple">Apple</li>// <li class="orange">Orange</li>// <li class="pear">Pear</li>// <li class="plum">Plum</li>// </ul> Copy
$('<li class="plum">Plum</li>').appendTo('#fruits');$.html();//=> <ul id="fruits">// <li class="apple">Apple</li>// <li class="orange">Orange</li>// <li class="pear">Pear</li>// <li class="plum">Plum</li>// </ul>
https://api.jquery.com/appendTo/
Insert every element in the set of matched elements to the end of the target.