Saturday, January 9, 2016

$(document).ready(function() {}); and $(function() {});



What does "$(function(data){"  mean  in jQuery?
It is the same as $(document).ready(function () {
  • $(document).ready(function() {});
  • $(function() {});
The two statements are actually the exact same. So the second call is just a shortcut for the first.

No comments:

Post a Comment