jquery

jQuery anonymous and callback function declarations

Jun
26

JavaScript enables you to create anonymous functions to be executed immediately or when the document is ready, and also allows you to freely pass functions around to be executed at a later time. The default short-hand notation for jQuery wrapper is $, and unless your webpage has a conflict with other javascript libraries you may freely use $ to wrap any jQuery scripts. Since there are many variations of anonymous function calls, they are worth mentioning here.

Subscribe to RSS - jquery