JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div id = 'schoolFeed'></div>
</body>
JavaScript
$(document).ready(function(){
$.ajax({
url: 'http://www.findschoolzones.com.au/SchoolZones/schoolzoneservice/schoolZoneList?state=SA®ion=All',
dataType: 'jsonp',
success: function(resp){
var text = '';
// we have the response
$.each( resp, function( i, result ) {
text += '<p>' + result.name + '</p>'
if ( i == 3 ) {
$('#schoolFeed').html(text);
return false;
}
});
},
error: function(e){
$('#schoolFeed').html("Some errror:" + e.target);
}
});
})