javascript cut element and place it elsewhere code example
Example: cut and paste element js
$("#yourElement").after("<p>Element was there</p>").appendTo("body");
$("#yourElement").after("<p>Element was there</p>").appendTo("body");