I'm trying to grab the href of one of my links and clone/copy that to the href of another link
Here's what i'm trying
var link = $('.topbook');
var link2 = $('.sidelink');
var hrefOrig = link2.href;
link.href = hrefOrig;
Thanks
Jamie
UPDATE
Here's is what I'm trying to get
<a href="default.aspx?propid=BARN" class="topbook"></a>
The above link should clone the sidelink that has display:block
<a href="default.aspx?propid=FARM" class="sidelink" style="display:none"></a>
<a href="default.aspx?propid=BARN" class="sidelink" style="display:block"></a>
Hope this helps