Closed wgehner closed 6 years ago
I think the issue is with $('#content-wrapper').append(scriptEl)
. I'm not exactly sure what jQuery is doing under the hood but given that the output of $('#content-wrapper')
is a collection maybe jQuery is copying scriptEl
in order to perform the operation on each object in the collection. Performing the operation on the raw javascript object works:
$('#content-wrapper')[0].append(scriptEl);
Works like a charm, thanks!
I am trying a custom dom insert as below. The 'done'/success for 'form' never fires. Please advise.