jQuery set href of link
$('.element').attr('href', newUrl);
Eloquent Design
$('.element').attr('href', newUrl);
$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");
$('a').attr('href'); // gets the actual value
$('a').prop('href'); // gets the full URL always