Insert Elements After Each target Element .insertAfter(target)

.insertAfter(target)

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

.insertAfter(target) will insert all elements in the matched set after each target element.

Example 1: $("<span>inserted</span>").insertAfter("div") will insert <span>inserted</span> after each <div>.
Before
<div>A</div>
<div>B</div>
After
<div>A</div>
<span>inserted</span>

<div>B</div>
<span>inserted</span>
Example 2: $("b").insertAfter("div") will move all <b> after <div>.
Before
<b>A</b>
<b>B</b>
<div>C</div>
After
<div>C</div>
<b>A</b>
<b>B</b>
jQuery manipulation insertion .insertAfter(target)