Helping ordinary people create extraordinary websites!
   

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?





More JavaScript Help:
» How can I resize a window to a specific size using JavaScript?
» How to use Javascript to produce a dynamic population clock?
» Can you please tell me how to put different validations on a textfield.???
» Write a javascript code that verifies all textboxes has been filled.
» GetElementById, z-index and onclick - getting the clicked layer on top
» How to submit a form using JavaScript?
» How can I convert characters to uppercase using JavaScript?
» Want to know aout session tracking using javascript in html