title: JQuery: Build HTML in 'memory' rather than DOM
body: <p>Is there a way to 'pre-build' a snippet of HTML before adding it to the DOM?</p>
  
  <p>For example:</p>
  
  <pre><code>$mysnippet.append("&lt;h1&gt;hello&lt;/h1&gt;");
  $mysnippet.append("&lt;h1&gt;world&lt;/h1&gt;");
  $("destination").append($mysnippet);
  </code></pre>
  
  <p>where <strong>$mysnippet</strong> doesnt exist in the DOM. I'd like to dynamically build up some lumps of html and then insert them into the page at appropriate points later.</p>