Hello: I'm trying to move content from div A to div B without execute the scripts inside A.
Move it is the easy part: var d = $('#B')[0]; $('#A > *').each(function(){ if(this.tagName.toUpperCase()!=='SCRIPT'){ d.appendChild(this); } }); But if the element is an iframe which has an script, appendChils will execute the scripts inside. So, How can i move the iframe without execute internal scripts??