Updated: 13 December 2023
Get version of jQuery from the console
$().jquery
Document ready
$( document ).ready(function() {
// Will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute.
console.log( "ready!" );
});
// equivalent shorthand version
$(function() {
// Will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute.
console.log( "ready!" );
});