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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -