Hi!,
with this code i calculate on the fly the value of 'KmPercorsi' field, and that works!
but i want to put the results in the table, what's the best way to do this?
<script>
var x = document.editform.value_KmFine;
x.onchange = x.onkeyup = function() {
var Inizio = document.editform.value_KmInizio.value;
var Fine = document.editform.value_KmFine.value;
document.editform.value_KmPercorsi.value = Fine - Inizio;
document.forms.editform.value_KmPercorsi.disabled=true;
}
</script>