My HTML Code is like this :
<div class="loading"></div>
My Javascript Code is like this :
//...
$('.loading').html('<img src="http://ift.tt/1PwvLqC"> loading...');
//...
success: function (response) {
for(i=0; i<response.SearchAvailResponse.Hotel.length; i++){
// console.log(response.SearchAvailResponse.Hotel[i].HotelNo);
$parent.find('.loading').html(response.SearchAvailResponse.Hotel[i].HotelNo);
}
}
//...
If I run console.log(response.SearchAvailResponse.Hotel[i].HotelNo), the result is:
1
2
But when sent to html, the result is:
2
Any solution to solve my problem?
Thank you
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/23otnwu
via IFTTT
Aucun commentaire:
Enregistrer un commentaire