![]() |
help on Javascript form calculating
hi guys... i am in need 4 some help here. just started the javascript and don't know much about it. so .... i'm using HTML form tag to create a test, with 13 questions, each of them with two possibilities, right or wrong. So the user will check 1 radio button completing the 13 questions, the thing is... What javascript code can i use, to calculate the right and the wrong answers ?
this is the basic structure of the code, *Note: value 1 means right, and value 2 means wrong. HTML Code:
<html>HTML Code:
<tr><td><input type="button" value="Calculate Results" onClick="CalcRes()" /></td></tr>like: Total right awnswers : (nr of right awnsers) Wrong awnsers: (nr of wrong awnsers) Wrong awnsers: (the names of buttons with vale 2, ex: question1, question4 ... ) I need this to run in Client mode only.please help, i'd be very graceful |
| All times are GMT +5.5. The time now is 05:24. |