Try It Editor
Tip: Press
Ctrl/⌘ + Enter
to Run
▶ Run
Reset
Copy
Download
Code
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document Ready</title> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> </head> <body> <p id="msg">Waiting...</p> <script> $(document).ready(function(){ $("#msg").text("DOM is ready!"); }); </script> </body> </html>
Output