Hi @linc
The thing is that inside your .each() loop you are appending to the whole $('.appendDiv') collection of divs.
Try with the following instead (no need for the second 'val' parameter I guess):
for (var i = 0; i < values.length; i++) {
value = values[i];
var name = value.name;
$('.appendDiv').each(function(index){
if (i === index) {
$( this ).append('<p>' + name + '</p>');
}
})
}
Hope this helps!