title: jQuery append div to parent sibling or children?
body: <p>I have the following HTML</p>
  
  <pre><code>&lt;li class="post" style="width: 621px;"&gt;
      &lt;div class="mediaholder"&gt;
          &lt;div class="mediaholder_innerwrap overlay cap-icon enlarge"&gt;
          &lt;a href="#" class="view" data-rel="lightbox" rel="lightbox"&gt;
              &lt;img width="440" height="330" src="#" class="attachment-portfolio-index wp-post-image"&gt;
          &lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="detailholder"&gt;
          &lt;h4 class="post-title"&gt;&lt;a href="#"&gt;Example Title One&lt;/a&gt;&lt;/h4&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  &lt;li class="post" style="width: 621px;"&gt;
      &lt;div class="mediaholder"&gt;
          &lt;div class="mediaholder_innerwrap overlay cap-icon enlarge"&gt;
          &lt;a href="#" class="view" data-rel="lightbox" rel="lightbox"&gt;
              &lt;img width="440" height="330" src="#" class="attachment-portfolio-index wp-post-image"&gt;
          &lt;/a&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="detailholder"&gt;
          &lt;h4 class="post-title"&gt;&lt;a href="#"&gt;Example Title Two&lt;/a&gt;&lt;/h4&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I'm trying to move the <code>.post-title</code> class inside the <code>a.view</code> class within each <code>li</code> using this jQuery</p>
  
  <pre><code>jQuery(document).ready(function ($) {
      $('.post-title').each(function () {
          $(this).parents('li').next('a.vew').append(this);
      });
  });
  </code></pre>
  
  <p>For each <code>post-title</code> I take it and append it to the parent li a.view but it's not working.</p>
  
  <p>I tried the below which appends the <code>post-title</code> inside the <code>mediaholder</code>, i'm having trouble getting this class into the <code>a.view</code> class. This is what i've got working <a href="http://jsfiddle.net/Zn6Eq/1/" rel="nofollow">http://jsfiddle.net/Zn6Eq/1/</a> if you can fork / update i'd really appreciate it.</p>
  
  <pre><code>jQuery(document).ready(function ($) {
      $('.post-title').each(function () {
          $(this).parents('li').children('.mediaholde').append(this);
      });
  });
  </code></pre>