Append Elements Inside Each target Element .appendTo(target)

.appendTo(target)

target: {selector, html String, Element, jQuery Object}
e.g. $("<b>text</b>").appendTo("div")

.appendTo(target) will insert all elements in the matched set inside and to the end of each target element.

Example 1: $("<span>inserted</span>").appendTo("div") will insert <span>inserted</span> inside each <div>.
Before
<div>
  <b>A</b>
</div>
<div>
  <b>B</b>
</div>
After
<div>
  <b>A</b>
  <span>inserted</span>
</div>
<div>
  <b>B</b>
  <span>inserted</span>
</div>
Example 2: $("b").appendTo("div") will move all <b> inside <div>.
Before
<div></div>
<b>A</b>
<b>B</b>
After
<div>
<b>A</b>
<b>B</b>
</div>
jQuery manipulation insertion .appendTo(target)