8,153
edits
Changes
From Fellrnr.com, Running tips
Test
,no edit summary
var trimps=new Array();
var total = 0;
for(ij=10; ij<=5; ij++)
{
{
if(document.getElementById(j+""+i).checked) { total += Number(document.getElementById('0'j+""+i).value); }
}
}
<tr>
<td>I slept well last night</td>
<td><input type="radio" name="slept0" value="1" id="01"/></td> <td><input type="radio" name="slept0" value="2" id="02"/></td> <td><input type="radio" name="slept0" value="3" id="03"/></td> <td><input type="radio" name="slept0" value="4" id="04"/></td> <td><input type="radio" name="slept0" value="5" id="05"/></td> </tr> <tr> <td>I am looking forward to today's workout</td> <td><input type="radio" name="1" value="1" id="11"/></td> <td><input type="radio" name="1" value="2" id="12"/></td> <td><input type="radio" name="1" value="3" id="13"/></td> <td><input type="radio" name="1" value="4" id="14"/></td> <td><input type="radio" name="1" value="5" id="15"/></td> </tr> <tr> <td>I am optimistic about my future performance</td> <td><input type="radio" name="2" value="1" id="21"/></td> <td><input type="radio" name="2" value="2" id="22"/></td> <td><input type="radio" name="2" value="3" id="23"/></td> <td><input type="radio" name="2" value="4" id="24"/></td> <td><input type="radio" name="2" value="5" id="25"/></td> </tr> <tr> <td>I feel vigorous and energetic</td> <td><input type="radio" name="3" value="1" id="31"/></td> <td><input type="radio" name="3" value="2" id="32"/></td> <td><input type="radio" name="3" value="3" id="33"/></td> <td><input type="radio" name="3" value="4" id="34"/></td> <td><input type="radio" name="3" value="5" id="35"/></td> </tr> <tr> <td>My appetite is great</td> <td><input type="radio" name="4" value="1" id="41"/></td> <td><input type="radio" name="4" value="2" id="42"/></td> <td><input type="radio" name="4" value="3" id="43"/></td> <td><input type="radio" name="4" value="4" id="44"/></td> <td><input type="radio" name="4" value="5" id="45"/></td> </tr> <tr> <td>I have little muscle soreness</td> <td><input type="radio" name="5" value="1" id="51"/></td> <td><input type="radio" name="5" value="2" id="52"/></td> <td><input type="radio" name="5" value="3" id="53"/></td> <td><input type="radio" name="5" value="4" id="54"/></td> <td><input type="radio" name="5" value="5" id="55"/></td>
</tr>
</table>