title: How to get the wrapper element created with "wrapAll()"?
body: <p>Consider the following code: (live example <a href="http://jsfiddle.net/dE9HV/1/" rel="nofollow noreferrer">here</a>)</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>$(function() {
    var wrapper = $("&lt;div class='wrapper'&gt;&lt;/div&gt;");
    $(".a").wrapAll(wrapper);
    wrapper.css("border", "5px solid black"); // Doesn't work
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.wrapper {
    background-color: #777;
  }</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="a"&gt;Hello&lt;/div&gt;
  &lt;div class="a"&gt;Stack&lt;/div&gt;
  &lt;div class="a"&gt;Overflow&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What would be the right way to get the created wrapper and change its attributes ?</p>
  
  <p><strong>Note:</strong> There are other <code>.wrapper</code> elements in the DOM, so this won't work:</p>
  
  <pre><code>$(".wrapper").css("border", "5px solid black");
  </code></pre>
  
  <p>I don't want to give a unique <code>id</code> to the created wrapper either.</p>