title: Create wrapper div around two other divs with jQuery
body: <p>How can I add an div element around 2 (or more) div? What I think:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('div.list-price').each(function() {
    $(this).before('&lt;div class="action-price"&gt;');
    $(this).next().after('&lt;/div&gt;');
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="list-price"&gt;20000&lt;/div&gt;
  &lt;div class="sell-price"&gt;10000&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I hoped that above code will do this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="action-price"&gt;
    &lt;div class="list-price"&gt;20000&lt;/div&gt;
    &lt;div class="sell-price"&gt;10000&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="action-price"&gt;&lt;/div&gt;
  &lt;div class="list-price"&gt;20000&lt;/div&gt;
  &lt;div class="sell-price"&gt;10000&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can anybody help me?</p>