I have an array of checked items as code below:
$('input[name="numb_item"]:checked').each(function() {
var numb=this.value;
$.ajax({
dataType : 'json',
data: {'numb_item': numb},
type: 'POST',
url:'ajxReportGenerator.php',
success: function(data){
$('#main_container').append(data);
},
});
});
My problem is that I wana pass first item and receive it's report then pass the secound one to the ajxReportGenerator.php
but it will pass them once as separated parameters and it makes timeout error because in ajxReportGenerator.php
my process will take long time and it's important to me to pass first item and receive it's report and then go to secound item...