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