Hi,
Can u post me the code, the way in which we can proceed by using dom.
Thanks in Advance.
I would suggest to search out for the functioning of the following functions:-
document.getEle mentById(id);
elemRef.appendC hild(childRef);
elemRef.removeC hild(childRef);
elemRef.insertB efore(oldChildR ef, newChildRef);
document.create Element(tagName );
document.create TextNode(text);
in addition search out for some properties
elemRef.firstCh ild
elemRef.lastChi ld
elemRef.childNo des (it is an array)
elementRef.pare nt (parent of the elemRef element).
Knowing these properties and methods you can manipulate DOM easily.
the functioning of functions and properties are self explainatory!
But if you find any problem in any of them them I will send you the explaination also.
Now moving to your context.(I can only guide you, real work is to be done by you only, because it is only you who understands the scenario of your problem)
let's say your div's ID are fdiv, and sdiv.
now append all the childs of fdiv in sdiv.
var sourceDiv = document.getEle mentById('fdiv' );
var destDiv = document.getEle mentById('sdiv' );
for(var i=0; i<sourceDiv.chi ldNodes.length; i++)
{
destDiv.appendC hild(sourceDiv. childNodes[i]);
}
all the nodes of fdiv will be added to sdiv;
I hope this helps