title: check that one radio button for each fieldset has been checked
body: <p>I have a form containing 10 fieldsets. </p>
  
  <p>I want to be able to check that when the form is submitted, each fieldset has a radio button selected.</p>
  
  <p>I've scoured similar posts and tried most/all of the answers without success so wondered if anyone can offer some advice on where I'm going wrong?</p>
  
  <p>An example of the html:</p>
  
  <pre><code>    &lt;div class="questions"&gt;
        &lt;fieldset&gt;
          &lt;h2&gt;If you could have any superpower, what would it be? &lt;/h2&gt;
          &lt;div class="row question9"&gt;
              &lt;label for="Q9A1" class="Q9 A1"&gt;
                &lt;input type="radio" class="styled" id="Q9A1" value="Q9A1" name="Q9"&gt;
                Flight &lt;/label&gt;
              &lt;label for="Q9A2" class="Q9 A2"&gt;
                &lt;input type="radio" class="styled" id="Q9A2" value="Q9A2" name="Q9"&gt;
                Super speed &lt;/label&gt;
              &lt;label for="Q9A3" class="Q9 A3"&gt;
                &lt;input type="radio" class="styled" id="Q9A3" value="Q9A3" name="Q9"&gt;
                X­ray vision &lt;/label&gt;
              &lt;label for="Q9A4" class="Q9 A4"&gt;
                &lt;input type="radio" class="styled" id="Q9A4" value="Q9A4" name="Q9"&gt;
                Super strength &lt;/label&gt;
              &lt;label for="Q9A5" class="Q9 A5"&gt;
                &lt;input type="radio" class="styled" id="Q9A5" value="Q9A5" name="Q9"&gt;
                See into the future &lt;/label&gt;
          &lt;/div&gt;
      &lt;/fieldset&gt;
  &lt;div&gt;
  &lt;div class="questions"&gt;
      &lt;fieldset&gt;
          &lt;h2&gt;If you could have any superpower, what would it be?&lt;/h2&gt;
          &lt;div class="row question10"&gt;
              &lt;label for="Q10A1" class="Q10 A1"&gt;
                &lt;input type="radio" class="styled" id="Q10A1" value="Q10A1" name="Q10"&gt;
                Flight &lt;/label&gt;
              &lt;label for="Q10A2" class="Q10 A2"&gt;
                &lt;input type="radio" class="styled" id="Q10A2" value="Q10A2" name="Q10"&gt;
                Super speed &lt;/label&gt;
              &lt;label for="Q10A3" class="Q10 A3"&gt;
                &lt;input type="radio" class="styled" id="Q10A3" value="Q10A3" name="Q10"&gt;
                X­ray vision &lt;/label&gt;
              &lt;label for="Q10A4" class="Q10 A4"&gt;
                &lt;input type="radio" class="styled" id="Q10A4" value="Q10A4" name="Q10"&gt;
                Super strength &lt;/label&gt;
              &lt;label for="Q10A5" class="Q10 A5"&gt;
                &lt;input type="radio" class="styled" id="Q10A5" value="Q10A5" name="Q10"&gt;
                See into the future &lt;/label&gt;
          &lt;/div&gt;
      &lt;/fieldset&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is where I've got up to with the jQuery:</p>
  
  <pre><code>$("#submit").on('click', function(){
          var flag;
          $('.questions')
              .each(function(){
                  flag = false;
                  if(!$('.question10 input[type="checkbox"]' .is(':checked'))
                  return false;
                  flag = true;
          });
          if (flag)
              alert("submitted");
          else
              alert("Not submitted");
      });
  </code></pre>