call a href from jquery code example Example: jquery set href of link $('.element').attr('href', newUrl);