what is the difference between:
$(function() {
//.....
});
and
$(document).ready(function() {
//......
});
in jQuery coding?
what is the difference between:
$(function() {
//.....
});
and
$(document).ready(function() {
//......
});
in jQuery coding?
Nothing. It does actually exactly the same, it's just a shortcut so you have to write less code.