Moving the content of a div to another div
Thursday, 16th December 2010
by Danila
I have a div on the left side of the screen: <div id="myResult">.....</div>
That div has quite a few field and other div inside of it.
After the user click a button, I need to take the html inside the myResult div and
put it in another div called: <div id="leftSide"></div>
I have tried jquery's $('#myResult').html() to get the inner html but in IE the html is mangled and does not get copied over.
Any suggestion. Do I have to rotate though all element of hte first div and reconstruct them?
|