JSFiddle - React, Tailwind, and code Playground

by staeff

HTML

<!DOCTYPE html>
<html lang="en">
    <head>
    </head>
    <body></body>
</html>

JavaScript

// 3 ways to run jQuery when the DOM ist ready

// Standard
jQuery(document).ready(function () { 
    alert('Document ready!'); 
});

// Shortcut 
jQuery(function () { 
    alert('Document still ready!'); 
});
            
// Shortcut mit safe usage of $. A reference 
// to the jQuery function is passed into the anonymous function. 
jQuery(function ($) {     
  alert('Seriously its ready!');
  // Use $() with out fear of conflicts 
});