Neither works,
The problem seems to be in that it is not recognizing the click event. I can replace the action inside the function with anything, including a simple alert, and it won't work, so the problem must be with trouble reading the click event.