JavaScriptHTML5すくりぷとみるきぃさんど
function goukei(i){ if(document.forms[0].elements[i].checked == true){ total = total + a[i]; } else { total = total - a[i]; } document.forms[0].elements[3].value = total; }