title: jQuery: appendTo parent
body: <p>I can't seem to get the appendTo to work. What do I do wrong?</p>
  
  <pre><code>$('div:nth-child(2n) img').appendTo(parent);
  </code></pre>
  
  <p>Current markup:</p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;img src="123.jpg" /&gt;
    &lt;p&gt;Hey&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class="container"&gt;
    &lt;img src="123.jpg" /&gt;
    &lt;p&gt;Hey&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want this output:</p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;p&gt;Hey&lt;/p&gt;
    &lt;img src="123.jpg" /&gt;
  &lt;/div&gt;
  &lt;div class="container"&gt;
    &lt;p&gt;Hey&lt;/p&gt;
    &lt;img src="123.jpg" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Please help me guys... I'm tearing my hair of every minute.. :-S</p>