I have a table with almost 300+ rows. On page load i need to call ajax request to update status
of each row by row_id
in DB. When Success
append response in respective row's column. After that run ajax for next row and so on.
MY TRY
$('table tbody tr').each(function(){
var tracking = $(this).attr('id');
setInterval(function(){
$.ajax({
...
success: function(){
//append here
}
});
}, 1000);
Problem
In this way when page load it create request for almost all rows and page stuck if record are too much.
is there any easy way to execute ajax one by one on each row?