This topic is locked
[SOLVED]

 Radio button Calculate on the fly

5/17/2016 1:32:37 PM
PHPRunner General questions
M
Mark Kramer author

All,
First off I am a Newbie to java script so please bear with me...
I am trying to Calculate on the fly a JavaScript onload event on the add page to total scores of tests using radio buttons for Pass/ Fail. . If all are clicked "Pass" then the total score should be 30. If they pass everything but spelling it should be 20 etc... I just can't wrap my head around the code needed... Below is what I'm trying to do.

Thank you for your help!
O Pass History (5 points)

O Fail (0 points)
O Pass Spelling (10 points)

O Fail (0 points)
O Pass Math (10 points)

O Fail (0 points)
O Pass English (5 points)

O Fail (0 points)
Total score = (total score form above radio buttons)

M
Mark Kramer author 5/20/2016

Figured it out after a days break...

Sergey Kornilov admin 5/20/2016

Feel free to post your solution here, can help other users as well.