Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 548 Bytes

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.

Something went wrong with that request. Please try again.