how to save multi record in laravel path 3

preview_player
Показать описание
how to save multi record in laravel
Рекомендации по теме
Комментарии
Автор

hi, may i know why there is the need to add "-0" to this code: $(this).val()-0;

function total(){
var total = 0;
$('.amount').each(function(i, e){
var amount = $(this).val()-0;
total += amount;
})
$('.total').html(total);
}

jovendev
visit shbcf.ru