JSFiddle - React, Tailwind, and code Playground
by dmethvin
JavaScript
// JSON example
$.ajax({
url: '/echo/html/',
type: "POST",
dataType: "json",
data: {
text: "NOT JSON!!!"
},
success: function(data) {
console.log("Success ",data);
},
error: function(xhr){
console.log("Error ", xhr);
}
}).always(function(){
console.log("Always ",arguments)
});