I'm new to jquery. I've just read that these 2 are equivalent:
$(document).ready(function() {});
$(function() {});
Which one is better practice, or more accepted? The first one strikes me as clearer in that it states the "document.ready" part - but then again, I'm new to jquery. It could be that to anyone with any experience in jquery, the second option just as clearly implies "document.ready". Which of these options should I choose?