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