<input type="submit" id="button">
<input type="text" id="input">
var input = document.getElementById('input');
var button = document.getElementById('button');
button.addEventListener('click', func);
function func(){
var clone = input.cloneNode(true);
input.parentElement.appendChild(clone);
}