JSFiddle - React, Tailwind, and code Playground

by Imri Paloja

JavaScript

$(document).ready(function() {
  $("button").click(function() {
    $.ajax({
      url: "demo_test.txt",
      success: function(result) {
        $("#div1").html(result);
      },
      error: function(data) {
        console.log(result);
      },




    });

  });

});