Candidate selector code

Jquery to make the candidate selector to work.