title: Checking all radio buttons selected in JQuery and JSP, Struts
body: <p>I am fairly new to jquery and I am working with jsp and struts .as part of the application I have a survey form with a number of categories each with different set of questions, and each question with a number of possible answers to pick from as radio buttons.
  I want the user to be required to pick one answer for each question in each category before submitting the form and to give an error if they don't.</p>
  
  <pre><code>&lt;s:iterator value="quelists"&gt;
  &lt;tr class="radioList"&gt;
  &lt;td&gt;
  &lt;s:property  value="surveyQuestion"/&gt;&lt;span id="msg_selectError"/&gt; 
  &lt;/td&gt;
  
  &lt;td &gt;
  &lt;s:iterator value="answerslists" status="status"&gt;
  &lt;s:radio  value="selectedAnswers[%{#count}]"  
            name="selectedAnswers[%{#count}]"  
            list="#{id:answer}"  required="true" theme="simple"/&gt;
  &lt;/s:iterator&gt;
  &lt;/td&gt;
  
  &lt;s:set var="count" value="#count+1"/&gt;    
  &lt;/tr&gt;
  &lt;/s:iterator&gt; 
  </code></pre>