hello,
i need to make a page which counts the number of check box's ticket and print the result in a readony txt box which i can do with this totals() function
function Totals()
{
check=document.forms[0].check;
txt="";
for (i=0;i<check.length;++ i)
{
if (check[i].checked)
{
txt=txt + check[i].value + "";
}
}
document.getElementById("order").value="points " + txt.length;
}
however, i also need to make a separate readonly box which converts these number of points to a string
eg.
Total points:
6
Award:
bronze
heres what i have so far but this is completely wrong....
function Awards()
{
var medal =document.getElementById("award").value="points " + txt.length;