JSFiddle - React, Tailwind, and code Playground

by Sulthan Allaudeen

HTML

<body>
<div id="trigger">Get the Result</div>
<div id="result"></div>
</body>

JavaScript

$(document).ready(function(){
    $("#trigger").click(function(){
        $.ajax({url: "demo_test.txt", success: function(result){
            $("#result").html(result);
        }});
    });
});