Can someone tell me the difference between:
$(document).ready(function() {
});
and:
var someVar = {
ready : function() {
}
}
or:
$(function() {
});
I have seen things started in all three ways and I am never sure which way to start. Is it different for different situations or uses?