I don't know how to do this w/ jQuery [but i'm sure it'll be very simple].
In terms of pure javascript, you can get the link's reference using document.getElementById. Then retrieve its href attribute using .href. Lastly, change the document's location to the href location -> document.location = href
if you don't want a redirection, then set the form's action attribute and do form.submit()