add address to href attribute using ajax code example Example: jQuery change href value $("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");