set href link on button in jquery code example Example: jquery set href of link $('.element').attr('href', newUrl);