Estava com uma dúvida sobre uma função de um total geral de campos de uma tabela pai x filho. Um dos admins me ajudou com a seguinte função:
function calcTotal(){
var totalGeral = 0.00;
$("[name^='C8_TOTAL6___']").each(function(index){
if ($(this).val()) {
totalGeral += $(this).maskMoney("unmasked")[0];
}
});
$("#totalGeralCotacao").val(totalGeral.toLocaleString(undefined, {minimumFractionDigits:4}));
$(".mascaraDinheiro").unmask();
$(".mascaraDinheiro").mask("#.###.##0,0000", { reverse : true });
}
@Daniel_Sales , obrigado!!!