jquery insertAfter for ie8
问题 var attachmentDeleteMainModal = $('#attachment-deletion'); var attachmentDeleteMainModalClone = attachmentDeleteMainModal.clone(); attachmentDeleteMainModalClone.attr('id', 'attachment-deletion-'+'main'); attachmentDeleteMainModalClone.insertAfter('#attachment-deletion'); This method adds my new selector to the DOM in Chrome, but does not work in ie8, this is all I tested so far append instead of insertAfter does not create the desired selector in either browser. But in ie8 it does not create