how to change the href using jquery code example Example: jquery set href of link $('.element').attr('href', newUrl);