jQuery .wrap issue
<p>How would I go about using the jQuery <code>.wrap</code> method to wrap a span around text in an element?</p>

<p>Here is the code I am working with so far:</p>

<pre><code>$.each(childElements, function(i, val) {
            $(childElements[i]).wrap("&lt;span class='' id='child_element_" + i + "' /&gt;");
        });
</code></pre>

<p>I want to wrap that span around the text that is in my childElements array (the childElements array contains tags such as <code>&lt;a&gt;</code>, <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> </p>
