<button id="myButton">Click me</button>
$(document).ready(function () {
  // Click event handler for the button
  $("#myButton").click(function () {
    // Change the text of the button
    $(this).text("Button Clicked!");
    setTimeout(function () {
      $("#myButton").text("Click me");
    }, 5000);

    // Alternatively, you can use the .html() method to change the HTML content
    // $(this).html("<em>Button Clicked!</em>");
  });
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.