
I started is to use ajax for radio box selected value, directly to accumulate, appear behind a bug,
the diagram below

Only when all chose to complete, can display Numbers,
Want to ask you have what good method, to achieve when the user clicks, selected frame for cumulative score, score at the bottom of the display
CodePudding user response:
Method one: choose completely to display scores, then each point of a will correspond to the value added to an array of, all after a click on the Numbers in the array accumulative operationMethod 2: reputation var num=0; Then every click on the value of num=num + you click on the corresponding Numbers, after all points will be num this value is assigned to the total score