S
simon.croome
Hi,
I am trying to create a function that will add values from several
form select boxes and output the result to another textfield.
my code is below, but I cannot get it to work.
Can anyone help ? Thanks.
function calcform(form) {
document.frmstorage.txttotufs.value =
number(+document.frmstorage.lstdiskspd1.value) +
number(+document.frmstorage.lstdiskspd2.value) +
number(+document.frmstorage.lstdiskspd3.value) +
number(+document.frmstorage.lstdiskspd4.value) +
number(+document.frmstorage.lstdiskspd5.value) +
number(+document.frmstorage.lstdiskspd6.value) +
number(+document.frmstorage.lstdiskspd7.value) +
number(+document.frmstorage.lstdiskspd8.value)
}
</script>
I am trying to create a function that will add values from several
form select boxes and output the result to another textfield.
my code is below, but I cannot get it to work.
Can anyone help ? Thanks.
function calcform(form) {
document.frmstorage.txttotufs.value =
number(+document.frmstorage.lstdiskspd1.value) +
number(+document.frmstorage.lstdiskspd2.value) +
number(+document.frmstorage.lstdiskspd3.value) +
number(+document.frmstorage.lstdiskspd4.value) +
number(+document.frmstorage.lstdiskspd5.value) +
number(+document.frmstorage.lstdiskspd6.value) +
number(+document.frmstorage.lstdiskspd7.value) +
number(+document.frmstorage.lstdiskspd8.value)
}
</script>