title: Jquery each through <a> gives me href only
body: <p>I have a simple menu</p>
  
  <pre><code>&lt;div class="nav-container desktop"&gt;
      &lt;a href="_index.php?page=_sub_papa&amp;main=klassen"&gt;One&lt;/a&gt;
      &lt;a href="_index.php?page=_sub_papa&amp;main=tw"&gt;Twp&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am looping through this with jQuery each and then creating <code>&lt;li&gt;</code> tags with the complete <code>&lt;a.../a&gt;</code>.</p>
  
  <pre><code>$.each( $('.nav-container&gt;a'), function(i, item){
          var menupunkt = '&lt;li&gt;' + item + '&lt;/li&gt;'
          console.log(i, menupunkt);
      });
  </code></pre>
  
  <p>Examples: <a href="http://codepen.io/anon/pen/bwbgap" rel="nofollow noreferrer">http://codepen.io/anon/pen/bwbgap</a>, <a href="https://jsfiddle.net/86g44ssp/" rel="nofollow noreferrer">https://jsfiddle.net/86g44ssp/</a></p>
  
  <p>In my console I see only the following</p>
  
  <pre><code>&lt;li&gt;http://xyz.ccom/_index.php?page=_sub_papa&amp;main=tw&lt;/li&gt;"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/QaeSL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QaeSL.png" alt="enter image description here"></a></p>
  
  <p>Why don't I get the whole a? Because when I just print "item" I get the whole <code>&lt;a.../a&gt;</code></p>