var one = document.querySelector('.one'), two = document.querySelector('.two'); two.innerHTML = one.innerHTML + two.innerHTML; one.innerHTML = '';