Tag Archives: jq

Change jquery function ($( document ).ready()) to anonymous function.

// Passing a named function instead of an anonymous function.
function myname( jQuery ) {
// Code to run when the document is ready.
}
$( document ).ready( myname);
// or:
$( window ).load( myname);
%d bloggers like this: