break jquery $('<div>') into separate opening and closing tags
<p>I have several blocks like:</p>

<pre><code>&lt;div class="first"&gt;...&lt;/div&gt;
&lt;div class="second"&gt;...&lt;/div&gt;
&lt;div class="third"&gt;..&lt;/div&gt;
</code></pre>

<p>I want to wrap all 3 blocks with another div.
Is there a way to split $('&lt;/div&gt;') in two parts: &lt;div&gt; and &lt;/div&gt; so I could insertBefore() the opening &lt;div&gt; and insertAfter() the closing &lt;/div&gt; I could achieve it simply with html but I can't modify it in this situation</p>
