pjleonhardt
05-02-2006, 03:29 AM
Hey there,
I'm working with a dynamically generated form, basically a quiz type of little mini-app.
In the form, the radio buttons are named like:
Question 1...
<input type="radio" name="question1" ../>Answer 1...
<input type="radio" name="question1" ../>Answer 2...
<input type="radio" name="question1 ../>Answer 3..
Question 2..
<input type="radio" name="question2" ../>Answer 1..
<input type="radio" name="question2" ../>Answer 2..
etc..
I am "grading" the form via Javascript as it is a necessity that this is a standalone page with no serverside input (will be run on a machine without internet access).
I know how many questions there will be, but it changes depending on which quiz they are taking. So I am wondering how to loop through the question_ inputs..
If I need to be a little more clear please let me know.
Thanks in advance,
Pete
I'm working with a dynamically generated form, basically a quiz type of little mini-app.
In the form, the radio buttons are named like:
Question 1...
<input type="radio" name="question1" ../>Answer 1...
<input type="radio" name="question1" ../>Answer 2...
<input type="radio" name="question1 ../>Answer 3..
Question 2..
<input type="radio" name="question2" ../>Answer 1..
<input type="radio" name="question2" ../>Answer 2..
etc..
I am "grading" the form via Javascript as it is a necessity that this is a standalone page with no serverside input (will be run on a machine without internet access).
I know how many questions there will be, but it changes depending on which quiz they are taking. So I am wondering how to loop through the question_ inputs..
If I need to be a little more clear please let me know.
Thanks in advance,
Pete