How can you change the href for a hyperlink using jQuery?
Stop using jQuery just for the sake of it! This is so simple with JavaScript only.
document.querySelector('#the-link').setAttribute('href', 'http://google.com');
https://jsfiddle.net/bo77f8mg/1/