Всем привет.
Вот сделал такой вывод, но возникла  проблема. Как сделать отработку Ajax запроса после каждой отработки вывода массива each ( id1 -> quntity1 -> Ajax, id2 -> quntity2 -> Ajax, .... и т.д.)?
window.onload = function(){
	$(document).ready(function(){
	$('.clear_basket').on('click', function(){
		var id = "";
		var quntity = "";
		$('.num_id').each(function(){
			id = $(this).val();
			quntity = $(this).closest('div.b_list').find('.b_quntity').val();
				$.ajax({
					url: "http://localhost/MyShop/php/product-basket-clear.php",
					type:"POST",
					data:{id:id, quntity:quntity},
					success: function(result){
						console.log(result);
				}
			});
				console.log(id);
				console.log(quntity);
			});	
			
		});	
	});
};