Possible Duplicate:
What is the difference between these jQuery ready functions?
$(function(){
// ... do stuff
});
VS
$(document).ready(function() {
// ... do stuff
});
I saw the first one in some old code and I assume the two are similar? Is there a benefit to one over the other?