I have 2 diferent divs: [Div1] and [Div2]. My goal is that when i click on some event, i want [Div1] to be the exactly the same as the [Div2]. I used this code:
document.getElementById("div1")=document.getElementById("div2");
This is a javascript error and i dont know how to do anything like this. I cant copy every element cuz those might change based on the users actions. I found something about cloning a node but i couldn't put it to work. Any sugestions?