JSFiddle - React, Tailwind, and code Playground
by Timmy Willison
HTML
<script src="http://getfirebug.com/firebug-lite-debug.js"></script>
JavaScript
var js = JSON.stringify({
json: 'questions?? more information',
delay: 5
});
console.log('js: ', js);
$.ajax({
url: '/echo/json/',
data: js,
dataType: "json",
type: "POST",
success: function(data) {
console.log('success: ', data);
},
error: function(xhr, textStatus, errorThrown) {
console.log('xhr: ', xhr);
console.log('status: ', textStatus);
console.log('error: ', errorThrown);
}
});