Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 457 Bytes

File metadata and controls

27 lines (20 loc) · 457 Bytes

Section 5.3: jQuery 3.0

  • Notation

As of jQuery 3.0, only this form is recommended:

jQuery(function($) {
  // Run when document is ready
  // $ (first argument) will be internal reference to jQuery
  // Never rely on $ being a reference to jQuery in the global namespace
});
  • Asynchronous
$(function() {
  console.log("inside Morol");
});

console.log("outside Morol");
  • Output
    • outside Morol
    • inside Morol