3
function IBUTG() {
$tt = $('[name=tempo_trabalho]');
$vt = $('[name=valor_ibutg_trabalho]');
$td = $('[name=tempo_descanso]');
$vd = $('[name=valor_ibutg_descanso]');
$ibutg = (($tt * $vt) + ($td * $vd)) / 60;
$('[name=ibutg_calculado]').val($ibutg);
}
I’m getting Nan when performing this function, what can it be? Input values are in the 99.9 format
Missed the
.val()
– Diego Souza