javascript - break jquery $('<div>') into separate opening and closing tags -
i have several blocks like:
<div class="first">...</div> <div class="second">...</div> <div class="third">..</div>
i want wrap 3 blocks div. there way split $('</div>') in 2 parts: <div> , </div> insertbefore() opening <div> , insertafter() closing </div> achieve html can't modify in situation
could use 'wrapall()'?
$('div').wrapall('<div class="new" />');
Comments
Post a Comment