I want to insert a large chunk of html into a pre-existing
What I would do is to put all of that HTML into a div as per: What could be the problem is line breaks. If you have a string (enclosed in "" or '') then you will find that line breaks will "break" your code... so you'll have to put all the HTML on one line.. I am using this method:
$(\"td#content\").html(LOTS_OF_HTML_CODE_HERE);
then when do this:
$("td#content").html($("#myHTML").html());