-
Notifications
You must be signed in to change notification settings - Fork 2
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.
Learn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com
Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook
And be sure to click the "Star" button in the upper right of this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
- arguments
- Array.prototype.filter
- Array.prototype.indexOf
- Array.prototype.map
- Array.prototype.pop
- Array.prototype.push
- Array.prototype.shift
- Array.prototype.slice
- Array.prototype.some
- Array.prototype.toString
- Boolean
- for loop
- for..in loop
- for..of loop
- String.prototype.split
- String.prototype.toLowerCase
- String.prototype.toUpperCase
- undefined
Other Links