JSFiddle - React, Tailwind, and code Playground

by ahuston12

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<div id="div1">
     <h2>Let jQuery AJAX Change This Text</h2>

</div>
<button id="button">Get External Content</button>

JavaScript

$(document).ready(function () {
    $("#button").click(function () {
        $.getJSON({
            type: "POST",
            url: "some URL will go here",
            success: function (result) {
                $("#div1").append(result);
            }
        });
    });
});