Is there a way to \'pre-build\' a snippet of HTML before adding it to the DOM?
For example:
$mysnippet.append(\"hello\"); $mysni
Sure, just build them as a string:
$mysnippet = "hello"; $mysnippet = $mysnippet + "world"; $("destination").append($mysnippet);