I know that jQuery automatically parses script elements and append them to the head, however I dont have much of a choice. I need to insert an html string exactly into a specified div. so for example <script src='http://.....'></script> into <div id="lb"></div>.
The problem is that the scripts get loaded from a server which I have no control over and is using a document.write() script. So if that gets appended to the header, there will be severe issues. How can I do this with or without jQuery?
document.write, you will have issues, no matter where you insert it. It will replace the whole document.document.writewill erase the current document. If the page is not fully parsed thendocument.writewill just insert the content where it was called. But maybe I read too much into this question.