Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Executing a Function on Ready Event in jQuery</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("p").text("The DOM is now loaded and can be manipulated."); }); </script> </head> <body> <p>Not loaded yet.</p> </body> </html>