What I want to do is update a text box with the current average of score ratings as a user enters score (numbers into text boxes) ratings for a series of questions.
I have been trying to figure this out for a couple days using different JavaScript's that I've copied but keep running into...
The script concatenates the 2 numbers before dividing by 2 instead of adding them.
here's the code:
<SCRIPT LANGUAGE="JavaScript">
function Calc(){
document.autoSumForm.totalBox.value=(document.autoSumForm.weight1.value + document.autoSumForm.rating1.value)/2
}
</script>
</head>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.