JSFiddle - React, Tailwind, and code Playground

by scaillerie

HTML

<script src="http://www.appelsiini.net/projects/chained/jquery.chained.js"></script>
<input type="text" id="code" value="200"/>
     
<input type="button" id="submit" value="Submit"/>

<br/>


<div id="val">Here is the description</div>

JavaScript

$("#submit").click(function() {
    $.ajax({
        url: "http://httpstat.us/" + $("#code").val(),
        success: function(data) {$("#val").text(data.substring(4));}
    })
});