What does this mean "jQuery(function ($) {})"?

155 Views Asked by At

What does the below line mean? It passes function($) as a parameter into jQuery?

jQuery(function ($) {
  // ...
});
1

There are 1 best solutions below

0
Mike Lyons On

It means, "treat this $ as if I were calling jQuery() when I use $() anywhere inside this anonymous function."

Jquery documentation: http://learn.jquery.com/using-jquery-core/