You can store that
id
of
div
before calling that
.get()
function like below.
$(function(){
window.setInterval(function() {
$(".cstat").each(function (i) {
var currentDivId = this.id;
$.get("getcustomerstatus.asp?customerid="+this.id).done(function(data){$("#" + currentDivId ).html(data);});
})
}, 10000);
})
Let me know it solves your problem or not.