Maybe this can help :
var forloops = $('.forLoopIndex');
var values = [];
forloops.keyup(function(){
values = [];
forloops.each(function () {
values.push($(this).val());
}
console.log(values);
});
Whenever the user writes something, the values are updated. You can then save them whenever your want.