JSFiddle - React, Tailwind, and code Playground

by Max bilbow

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<p>Load: <span id="load"></span></p>

<p>Get: <span id="get"></span></p>

<p>Get (error): <span id="err"></span></p>

JavaScript

$("#load").load('/echo/js/?js=hello%20world%201');

$.get('/echo/js/?js=hello%20world%202', function(aResponse) {
  $("#get").html(aResponse);
});


$.get('sd-fds-dfs', function(aResponse) {
  $("#get").html("OK");
}).fail(function(jqXHR, textStatus, errorThrown) {
  console.warn(arguments);
  $("#err").html(errorThrown);
});