के अंदर लपेटें पाठ मुझे एक div के अंदर पाठ को लपेटने की आवश्यकता है।तत्व
<div class="item">
<span class="count"></span>
Text that needs to be wrapped.
</div>
<div class="item">
<span class="count"></span>
Text that needs to be wrapped.
</div>
<div class="item">
<span class="count"></span>
Text that needs to be wrapped.
</div>
इस की कोशिश की लेकिन यह वास्तव में काम नहीं किया ...
$('.item').text().wrap('<span class="new" />');
+1 jsfiddle yep यह भी काम करता है। – santa