I want to append the content of an already defined \"old div\" tag to the \"new div\" tag dynamically but its not working. The code i tried is attached below. And one more quest
Try this
var i = document.getElementById( 'old' ); var d = document.getElementById( 'new' ); d.innerHTML += i.innerHTML;