Get a href attr and set it to another
<pre><code>&lt;script type="text/javascript"&gt;
$(function() {

    $('.thelink a').select(function() {

        var a_href = $(this).attr("href");

    });
    $('.calltoActionMoreInformation a').attr('href', a_href);
});
&lt;/script&gt;

  &lt;div class="thelink" style="height: 250px; position: relative;"&gt;
  &lt;a title="xxx" href="xxx"&gt;
    &lt;img alt="tree" src="x" /&gt;

  &lt;/a&gt;
  &lt;/div&gt;
</code></pre>

<p>Trying to put the href from a  inside  into:</p>

<pre><code>  &lt;span class="calltoActionMoreInformation" style="position: absolute; bottom: 0px;"&gt;
   &lt;a title="" href="--Link here--"&gt;&lt;/a&gt;
  &lt;/span&gt;
</code></pre>

<p>If I set var a_href = 'http://www.google.co.uk'; it sets it correctly, so the problem lies within getting the href of the only a link within .thelink div..</p>

<p>How do I assigned the href in .thelink a to .calltoActionMoreInformation a <strong>?</strong></p>
