abstract:
The column totals would be: 2, 0, 3 and the total would be 5. However if they then decide to choose:
radio33, radio36, radio38
The colum totals would change to: 2, 0, 1 and the total would be 3
I basically need the total of each column and the total overall. The value should be taken from the actual "VALUE". Hope this makes sense!
Hi,
I have a matrix of radio buttons:
<input type="radio" name="chcalt" id="radio33" value="1">
<input type="radio" name="chcalt" id="radio32" value="2">
<input type="radio" name="chcalt" id="radio31" value="3">
<input type="radio" name="chcaltas" id="radio36" value="1">
<input type="radio" name="chcaltas" id="radio35" value="2">
<input type="radio" name="chcaltas" id="radio34" value="3">
<input type="radio" name="chcaltrt" id="radio39" value="1">
<input type="radio" name="chcaltrt" id="radio38" value="2">
<input type="radio" name="chcaltrt" id="radio37" value="3">
These are in a table so first row of the above is in same column and so on. Let's say the following are chosen:
radio33, radio34, radio39
The column totals would be: 2, 0, 3 and the total would be 5. However if they then decide to choose:
radio33, radio36, radio38
The colum totals would change to: 2, 0, 1 and the total would be 3
I basically need the total of each column and the total overall. The value should be taken from the actual "VALUE". Hope this makes sense! |