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:
<
Try
$('h1').nextUntil('div.img').addBack().wrapAll('');
Demo: Fiddle