JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-1.5rc1.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<div id="results"></div>

JavaScript

$(document).ready(function() {
     var successFunc = function(data, status, xhr) {
         $("#results").text("success!");
     };

    jQuery.onError = function(err) {
        $("#results").text(err.toString());
    };
    $("#results").text("loading...");
    $.ajax({
      success: successFunc,
      contentType: "text/json",
      data: '{"foo": 0}',
      dataType: "json",
      url: "/echo/json/",
      type: "POST"
    });            
    
});