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