JPEG doesn't support clickable links.
For us to help with export of hyperlinks to PDF, you'd have to tell us how you exported the PDF (Interactive? Print?) and what settings you used. Also, what PDF reader are you using to test the link? Latest version of InDesign CC (or earlier)? Computer platform?
Figured it out. Thank you!