I\'m new to jquery. I\'ve just read that these 2 are equivalent:
$(document).ready(function() {});
$(function() {});
Which one
All three of the following syntaxes are equivalent:
$(document).ready(handler); $().ready(handler); //(this is not recommended) $(handler);