Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery Click Handler Demo</title> <link rel="stylesheet" type="text/css" href="/examples/css/style.css"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").text("Hello World!"); }); }); </script> </head> <body> <p>Not loaded yet.</p> <button type="button">Replace Text</button> </body> </html>