Insert every element in the set of matched elements to the end of the target.
$.t('<div>', { text: 'Hello' }).appendTo('body');
<body>
...
<div>Hello</div>
</body>
$('.items').appendTo('#archive');
<div id="archive">
<!-- existing content -->
<div class="items">...</div>
<div class="items">...</div>
</div>
| Parameter | Type | Description |
|---|---|---|
| target | string | element | SR | A selector, element, or SR object. The matched elements will be inserted at the end of this target. |
Returns: A new SR object containing all inserted elements (including clones and originals).