I need to move elements on the page from one div to another which I do with $("#div1 *").appendTo("#div2"). However some of the elements in div1 are iframes and after move they loose all their content, so that after move rather than have <div id='div1'> <iframe><html>...</html></iframe> </div>
I have: <div id='div1'> <iframe/> </div> The iframes don't have src file and are created dynamically, their content might change since they are created and before move, so I cannot recreate them. I need to move them exactly as they are. Is that possible? Please help. Thank you.