Use .wrapAll() to wrap the divs. What you use to identify which divs to wrap will depend on what else is on the page. If they are the only sections on the page, then $( "section" ).wrapAll( "<div class='new' />"); will achieve what you want. If not, then add a common class to the sections, and use that to identify your divs, $( ".sel" ).wrapAll( "<div class='new2' />");.