Hello guys i had a simple ajax request this also is working fine, but i had to loop trought the data and display all 10 names in the object allready searched it in stack but the object which i had is a bit to complicated. any suggestions how i can solve it?
$( document ).ready(function() {
$.ajax({
url: 'XXXXXXX',
data: {
format: 'json'
},
error: function() {
alert('ERROR');
},
sasdataType: 'json',
success: function(data) {
/*var $hotelname = $('<h1>').text(data.result.hotel[0].displayname);
$('#hotel-name').append($hotelname)*/
console.log(data);
},
type: 'GET'
});
});