views:

43

answers:

1

what is the difference between:

$(function() {

//.....

});

and

$(document).ready(function() {

//......

});

in jQuery coding?

+6  A: 

Nothing. It does actually exactly the same, it's just a shortcut so you have to write less code.

joni