I need to wrap three divs into one, but that group of three divs is repeating itself several times in code. Maybe my HTML will explain:
<div class="one" />
<div class="two" />
<div class="three" />
<div class="one" />
<div class="two" />
<div class="three" />
What I'm trying to achieve is this:
<div class="wrap">
<div class="one" />
<div class="two" />
<div class="three" />
</div>
<div class="wrap">
<div class="one" />
<div class="two" />
<div class="three" />
</div>
This is wrapping everything into one div:
$('.one, .two, .three').wrapAll('<div class="wrap" />')
How can I get the groups wrapped separately?