JSFiddle - React, Tailwind, and code Playground

by shaneburgess

HTML

<button id="getAjax">Ajax Call</button>

JavaScript

$("#getAjax").click(function(){
       $.ajax({
				url: '/echo/jsonp/?message=This request was sent from the server'
		}).done(function(data) {
							alert(data.message);
		});
});