I am trying to wrap both a h1 tag and multiple p tags into one div using jQuery wrapAll.
h1
p
div
Here is my HTML:
<
Have you tried to just add p inside the selector:
$('.postwrap').each(function(){ $(this).find('h1, p').wrapAll(''); $(this).find('.img').wrapAll(''); });