SyntaxFix
Write A Post
Hire A Developer
Questions
Depending on the answer from KyungHun Jeon, but the appendChild expect a dom node, so add a index to jquery object to return the node: document.body.appendChild(form[0])
document.body.appendChild(form[0])