xxxxxxxxxx
// Get the element
var elem = document.querySelector('#elem1');
// Create a copy of it
var clone = elem.cloneNode(true);
// Inject it into the DOM
elem.after(clone);
xxxxxxxxxx
$("#yourElement").after("<p>Element was there</p>").appendTo("body");