JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).ready(function(){
$.ajax({
type: 'GET',
url: 'http://test.com/tesdata',
data: { get_param: 'value' },
dataType: 'json',
success: function (data) {
alert("s");
$.each(data, function(index, element) {
$('.result').append("a");
});
},
error: function(jqXHR, textStatus, errorThrown){
alert("jqXHR: " + JSON.stringify(jqXHR));
alert("textStatus: " + JSON.stringify(textStatus));
alert("errorThrown: " + JSON.stringify(errorThrown));
}
});
});