Widget:DAPTscore: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi (talk | contribs) mNo edit summary |
Gerald Chi (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
function calcScore(){ | function calcScore(){ | ||
var score=0; | var score=0; | ||
if (document.getElementById('1').checked== | if (document.forms["DAPTSCORE"].getElementById('1').checked == 1){score += -2;} | ||
if (document.getElementById('2').checked== | if (document.forms["DAPTSCORE"].getElementById('2').checked == 1){score += -1;} | ||
if (document.getElementById('3').checked== | if (document.forms["DAPTSCORE"].getElementById('3').checked == 1){score += 0;} | ||
if(document.forms["DAPTSCORE"]["input4"].checked == 1){score += 1;} | if(document.forms["DAPTSCORE"]["input4"].checked == 1){score += 1;} | ||
if(document.forms["DAPTSCORE"]["input5"].checked == 1){score += 1;} | if(document.forms["DAPTSCORE"]["input5"].checked == 1){score += 1;} |