Prepend Elements Inside Each target Element .prependTo(target)

.prependTo(target)

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

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

Example 1: $("<span>inserted</span>").prependTo("div") will prepend <span>inserted</span> inside each <div>.
Before
<div>
  <b>A</b>
</div>
<div>
  <b>B</b>
</div>
After
<div>
  <span>inserted</span>
  <b>A</b>
</div>
<div>
  <span>inserted</span>
  <b>B</b>
</div>
Example 2: $("b").prependTo("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 .prependTo(target)