michael-d
9/11/2017 - 12:48 AM

Use this script to wrap multiple children inside a parent element

Use this script to wrap multiple children inside a parent element

<script>
$(document).ready(function(){

$('#parentDIV').each(function() {
    $(this).children('h2, a')
           .wrapAll('<div class="wrapInsideParent"></div>')
});

});
</script>