JSFiddle - React, Tailwind, and code Playground
HTML
<div id="success">
<div id="artistName"></div>
<div id="artistImage"></div>
<div id="artistBio"></div>
</div>
<div id="error"></div>
JavaScript
$.ajax({
type : 'POST',
url : 'http://ws.audioscrobbler.com/2.0/',
data : 'method=artist.getinfo&' +
'artist=After+The+Burial&' +
'api_key=57ee3318536b23ee81d6b27e36997cde&' +
'format=json',
dataType : 'jsonp',
success : function(data) {
$('#success #artistName').html(data.artist.name);
$('#success #artistImage').html('<img src="' + data.artist.image[2]['#text'] + '" />');
$('#success #artistBio').html(data.artist.bio.content);
},
error : function(code, message){
$('#error').html('Error Code: ' + code + ', Error Message: ' + message);
}
});