Insert content next to each element in the set of matched elements.
HTML string, DOM element, array of DOM elements or Cheerio to insert after each element in the set of matched elements.
The instance itself.
$('.apple').after('<li class="plum">Plum</li>');$.html();//=> <ul id="fruits">// <li class="apple">Apple</li>// <li class="plum">Plum</li>// <li class="orange">Orange</li>// <li class="pear">Pear</li>// </ul> Copy
$('.apple').after('<li class="plum">Plum</li>');$.html();//=> <ul id="fruits">// <li class="apple">Apple</li>// <li class="plum">Plum</li>// <li class="orange">Orange</li>// <li class="pear">Pear</li>// </ul>
https://api.jquery.com/after/
Insert content next to each element in the set of matched elements.