I know that there are others posts with solutions on the site but i really need a clear view of what i am doing my form is the one below:
<form name="multichoice" action="">
<table>
<tr>
<td>Q1.</td>
<td>Do you think you are pretty?</td>
<td class="radiobox"><input type="radio" name="q1" value="1"/></td>
<td class="radiobox"><input type="radio" name="q1" value="2"/></td>
<td class="radiobox"><input type="radio" name="q1" value="3"/></td>
<td class="radiobox"><input type="radio" name="q1" value="4"/></td>
</tr>
<tr>
<td>Q2.</td>
<td>Do you think you are smart?</td>
<td class="radiobox"><input type="radio" name="q1" value="1"/></td>
<td class="radiobox"><input type="radio" name="q1" value="2"/></td>
<td class="radiobox"><input type="radio" name="q1" value="3"/></td>
<td class="radiobox"><input type="radio" name="q1" value="4"/></td>
</tr>
</table>
</form>
So i am looking for javascript code to make sure that every question will have an answer before we submit, looking forward for your answers
Thank you in advance if you can help
If you want to stay jQuery-free:
This just iterates through each radio element, and keeps track of each radio group, looking for a “checked” value for each group. A similar solution in jQuery: