SO - 24759358

by Arun P Johny

HTML

<div class="bigfont-m capsletter">1</div>
<div class="headfont6 text-overhide">2</div>

CSS

.wrapper {
    border: 1px solid red;
}

JavaScript

$('.bigfont-m.capsletter, .headfont6.text-overhide').wrapAll('<div class="wrapper"/>')