$('[data-container="set"]').change(function() {
var sum = 0;
var a = $('[data-container="set"]').find('[name="sum[]"]').map(function(indx, element){
sum += $(element).val();
return sum;
});
$('[name="resultsum"]').val(sum);
return false;
});