Strict Standards: Only variables should be passed by reference in /home/adrane3/public_html/phpjquery/template.php on line 9
jQuery 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.

Run

Clear

show/hide formatted

  • Calling a basic function
  • Function as a variable
  • Function as a parameter in another function 1
  • Function as a parameter in another function 2