G
GioX®
Hello Everybody,
I'm trying to make a verification script to check if the user has
answered to all the questions on the page.
here is the "questions" code:
<table>
<tr><td class="questionText">Question 1</td></tr>
<tr><td class="answerChoice">
<div class="answer"><input type="radio" name="q23"
value="1">Excellent</div>
<div class="answer"><input type="radio" name="q23" value="2">Good</
div>
<div class="answer"><input type="radio" name="q23"
value="3">Sufficient</div>
<div class="answer"><input type="radio" name="q23" value="4">Not
Sufficient</div>
</td></tr>
<tr><td class="questionText">Question 2</td></tr>
<tr><td class="answerChoice">
<div class="answer"><input type="radio" name="q24" value="7">Yes</div>
<div class="answer"><input type="radio" name="q24" value="8">No</div>
</td></tr>
......
</table>
As you can see, the radios can be 4 or 2 or sometimes 3, depending on
the answer type.
This page is automatically generated by a polls generator script, so
the site admin builds the pools.
What I need is to verify that the user has checked one radio of q23,
one radio of q24...and so on
How can I do it??!
many thanks
marco
I'm trying to make a verification script to check if the user has
answered to all the questions on the page.
here is the "questions" code:
<table>
<tr><td class="questionText">Question 1</td></tr>
<tr><td class="answerChoice">
<div class="answer"><input type="radio" name="q23"
value="1">Excellent</div>
<div class="answer"><input type="radio" name="q23" value="2">Good</
div>
<div class="answer"><input type="radio" name="q23"
value="3">Sufficient</div>
<div class="answer"><input type="radio" name="q23" value="4">Not
Sufficient</div>
</td></tr>
<tr><td class="questionText">Question 2</td></tr>
<tr><td class="answerChoice">
<div class="answer"><input type="radio" name="q24" value="7">Yes</div>
<div class="answer"><input type="radio" name="q24" value="8">No</div>
</td></tr>
......
</table>
As you can see, the radios can be 4 or 2 or sometimes 3, depending on
the answer type.
This page is automatically generated by a polls generator script, so
the site admin builds the pools.
What I need is to verify that the user has checked one radio of q23,
one radio of q24...and so on
How can I do it??!
many thanks
marco