要素1
要素3
要素2
要素1
要素3
要素2
要素1
要素3
要素2
<style>
.wraall02 div,.wraall02 strong {margin:10px;padding:10px;}
.wraall02 .div01 {border:dotted 1px red;}
.wraall02 .div02 {border:dotted 1px blue;}
.wraall02 .div03 {border:dotted 1px green;}
</style>
<script>
$(function(){
$('.wraall02 .div01,.wraall02 strong').wrapAll('<div class="div03"></div>');
});
</script>
<div class="wraall02">
<div class="div01">要素1</div>
<strong>要素3</strong>
<div class="div02">要素2</div>
<div class="div01">要素1</div>
<strong>要素3</strong>
<div class="div02">要素2</div>
<div class="div01">要素1</div>
<strong>要素3</strong>
<div class="div02">要素2</div>
</div>