This question already has an answer here:
- failed send response ajax to html 4 answers
My HTML Code is like this :
<div class="loading"></div>
My Javascript Code is like this :
...
$parent.find('.loading').html('<img src="http://ift.tt/1PwvLqC"> loading...');
$.ajax({
...
success: function (response) {
for(i=0; i<response.SearchAvailResponse.Hotel.length; i++){
//console.log(response.SearchAvailResponse.Hotel[i].HotelNo); The result : 1 2
$parent.find('.loading').append(response.SearchAvailResponse.Hotel[i].HotelNo);
}
}
});
After HotelNo has been sent to html, loading does not stop. Look here : http://ift.tt/1JyyJPj
Why did it happen?
Any solution to solve my problem?
Thank you
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1S6DXop
via IFTTT
Aucun commentaire:
Enregistrer un commentaire