How do you go about writing out HTML to the calling position of a jQuery function?
I have an HTML page that contains the following jQuery/JS code:
... HTML contents ...
<script>
functionName();
</script>
... More HTML Contents...
How do I get functionName
to append/write out new content where it is called, rather than selecting another ID in the document and appending after.
JavaScript's document.write
can do this, however, I've read that it screws up jQuery's ability to work with the DOM later.