apply jquery filter to identify which link is selected based on link ID