Javascript vs jQuery Function Difference? -


i've been making program , want know difference between starting 2 functions so:

$(function () {    //content }); 

and

function name () {     //content } 

also, why can't name first example? tried changing first example second type, , function stopped working fully. i've used jquery first example , fine, different example, function stopped working.

so what's difference?

$(function () {}); shortcut $(document).ready(function(){});

while this:

function name () {     //content } 

is standard javascript function.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -