function clonePreviousElement(btn) {
var elem = btn.previousSibling;
while(elem.nodeType != Node.ELEMENT_NODE) {
elem = elem.previousSibling;
}
btn.parentNode.insertBefore(elem.cloneNode(true), btn);
}
<button onclick="clonePreviousElement(this)"></button>