How can i wrap only the content present inside the span excluding the tags..
Here is the markup what i have...
<span class="foo">
<span class="bar">+</span>
lorem ispum lorem ispumlorem ispumlorem ispum
</span>
now this is what i want it to be
<span class="foo">
<span class="bar">+</span>
<span class="foobar">lorem ispum lorem ispumlorem ispumlorem ispum</span>
</span>
$('.foo').wrapInner('<span class="foobar"/>')
is wrapping the entire inner content.\
thanks in advance..