title: Jquery wrapAllInner() ? -- Or wrapAll() applied internally?
body: <p>I'm trying to insert an opening <code>&lt;div class="container"&gt;</code> after <code>&lt;body&gt;</code> and a closing <code>&lt;/div&gt;</code> before <code>&lt;/body&gt;</code></p>
  
  <p>I'd like for there to be a function like <code>wrapAll()</code> that would apply internally, on the <code>html()</code> of an element. Something like <code>wrapAllInner()</code> would be great.</p>
  
  <p>I've tried:</p>
  
  <p><strong>1)</strong> <code>$('body').html().wrapAll('&lt;div class="container"&gt;&lt;/div&gt;');</code></p>
  
  <p>which didn't work at all. <em>$("body").html().wrapAll is not a function</em>. weird.</p>
  
  <p><strong>2)</strong> <code>$('body').children().wrapAll('&lt;div class="container"&gt;&lt;/div&gt;');</code></p>
  
  <p>which for some reason caused the js to get repeated twice.  It even caused an alert() I placed right after it to get repeated twice. whut?</p>
  
  <p>Thanks so much,</p>
  
  <p>long time listener, first time caller</p>