JSFiddle - React, Tailwind, and code Playground
HTML
<div id="testdiv_from">
<input type="text" id="text1" value="13" />
</div>
<div id="testdiv_to"></div>
<input type="button" />
JavaScript
var btn = document.querySelector("[type=button]");
btn.addEventListener("click", save);
function save() {
var divTo = document.getElementById("testdiv_to"),
divFrom = document.getElementById("testdiv_from");
[].forEach.call(divFrom.childNodes, function (node) {
divTo.appendChild(node.cloneNode(true));
});
}