Possible Duplicate:
Differences between document.ready and $function
I think it is a stupid question, but,
Can someone show me the differences between these two call types?
$(function(){
//do somenthing
});
and
$(document).ready(function(){
//do somenthing
});
They are the exact same thing. The top one is just a shortcut
From jquery doc:
.ready() jQuery API