JSFiddle - React, Tailwind, and code Playground

by Ajay Patel

HTML

<button id="btnLoad">Load Content</button>
<div id="content">
  Please click "Load Content" button to load content.
</div>

JavaScript

$("#btnLoad").click(function(){

  // Put an animated GIF image insight of content
  $("#content").empty().html('Loding...');

  // Make AJAX call
  $("#content1").load("slkjdfs");
});