An intro to functions as parameters
In jQuery, you will very often find yourself passin functions as parameters to other functions. For example, when you want to set a custom 'click' event for a link, you must define what happens as a function. Here is a quick explanation of how that works.
- Calling a basic function
- Function as a variable
- Function as a parameter in another function 1
- Function as a parameter in another function 2