title: Correct way of using jQuery's .wrap() on a variable
body: <p>I am having troulbe wrapping some HTML with jQuery's <code>.wrap()</code> method:</p>
  
  <p>I have:</p>
  
  <pre><code>var containerbox = $(".identifier:eq("+i+")").parent().html();
  </code></pre>
  
  <p>And want to wrap the <code>containerbox</code> variable in a div, so I have tried:</p>
  
  <pre><code>containerbox = $(containerbox).wrap('&lt;div class="holder" /&gt;');
  </code></pre>
  
  <p>With no success.</p>
  
  <p>I have also tried:</p>
  
  <pre><code>var containerbox = $(".identifier:eq("+i+")").parent().html().wrap('&lt;div class="holder" /&gt;');
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>var containerbox = $(".identifier:eq("+i+")").parent().html();
  containerbox.wrap(function() {
   containerbox += '&lt;div class="holder"&gt;' + $(this).text() + '&lt;/div&gt;';
  });
  </code></pre>
  
  <p>Does anyone know the correct way of achieving this?</p>