title: Wrapping and appending an array-element by using jQuery.each
body: <p>I'm destroying myself over this. Not the must experienced ind js. But this should be simple right?</p>
  
  <p>I want to wrap each element in my 'arr'-array in <code>&lt;div class="mongol"&gt;&lt;/div&gt;</code> and append it to the <code>div#testBox</code>. Im using <code>jQuery.each</code> to do so, but I am not getting anything:</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;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type='text/javascript'&gt;
    var arr = ["one", "two", "three", "four", "five"]
  
    jQuery.each(arr, function() {
      $(this).append("#testBox").wrap("&lt;div class='mongol'&gt;&lt;/div&gt;");
    });
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If i <code>alert(this)</code> in my jQuery.each-function then it alerts every element just fine. I don't get it. </p>
  
  <p>What i am trying to achieve:</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 id="testBox&gt;
       &lt;div class=" mongol "&gt;one&lt;/div&gt;
       &lt;div class="mongol "&gt;two&lt;/div&gt;
       &lt;div class="mongol "&gt;three&lt;/div&gt;
       &lt;div class="mongol "&gt;four&lt;/div&gt;
       &lt;div class="mongol "&gt;five&lt;/div&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>