title: jQuery clone link and wrap/appendto/replace?
body: <p>I just want to clone the link provided (i.e. href="xxx", not all the junk in between) and put that link on another link elsewhere on the page.</p>
  
  <p>This is the link I want to clone:</p>
  
  <pre><code>  &lt;a href="/ReviewNew.asp?ProductCode=TRU%2DGDM49"&gt;
         &lt;span class="PageText_L479n"&gt; | 
            &lt;span id="write"&gt;Write a review&lt;/span&gt;
         &lt;/span&gt;
    &lt;/a&gt;
  </code></pre>
  
  <p>This is where I want to clone the link to (on id <code>sendreviewlink</code>):</p>
  
  <pre><code>&lt;li id="sendreview"&gt;
       &lt;a id="sendreviewlink" href=""&gt;&lt;em&gt;Write a Quick Review&lt;/em&gt;
          &lt;span class="hwText"&gt;Earn $2 For Every Approved Review&lt;/span&gt;
       &lt;/a&gt;
   &lt;/li&gt;
  </code></pre>
  
  <p>This is my JavaScript code which I have tried so far:</p>
  
  <pre><code>$('#write').closest('a').clone().wrap('#sendreviewlink');
  $('#write').closest('a').clone().appendTo('#sendreviewlink');
  $('#write').closest('a').clone().ReplaceAll('#sendreviewlink');
  </code></pre>