Refactored code for "set link and submit click events" to incorporate JQ Selectors.