because classe change to c1 before the response from c0 come in... Put it into a anonym function.
for (var i = 0; i < inp.files.length; i++) {
(function () {
var classe = '.c' + i;
$('form').ajaxSubmit({
beforeSend: function () {
$('body').append('<p class="c' + i + '"></p>');
},
uploadProgress: function (event, position, total, percentComplete) {
var percentVal = percentComplete + '%';
$(classe).append(percentVal);
//console.log(percentVal, position, total);
}
});
}());
}
(NOT TESTED)
Or you have to change the Ajax request to sync