Skip to content

Challenge Trigger Click Events With JQuery

Quincy Larson edited this page Aug 20, 2016 · 1 revision

Challenge Trigger Click Events with jQuery

APIs - or Application Programming Interfaces - are tools that computers use to communicate with one another.

$(document).ready() This function makes it so all code inside of it only runs once our page loads.

Inside that you can add any function or code, for this particular Challenge you need to add a click handler:

$("#getMessage").on("click", function(){
  //Custom code here
});

This will create a function so when the element with id getMessage is clicked, the custom function will be run.

Clone this wiki locally