how to pause the script in content when call $(dom).html(content)
I have impl such function.
- function swapElementContent(el1, el2) {
var tempContent = el1.html();
el1.html(el2.html());
el2.html(tempContent);
}
it works, however, the scirpt in el1 & el2 will be executed!
that has some side effects.
so is there any ways to void the script be executed?
or is there any other impl to avoid it.
I am tring to impl with inner html,
however, it may have cross browser problem?