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>