Validating radiobutton must have selected value

Validating radiobutton must have selected value

I am trying to validate with jQuery that at least one input is checked inside the .QuizAnswers div.  Any thoughts?

  1. <div class="QuizAnswers">

  2. <div class="QuizAnswer">
  3. <input type="radio" value="2" name="questionAnswer">
  4. <label for="questionAnswer">a. Taxilane Centerline</label>
  5. </div>

  6. <div class="QuizAnswer">
  7. <input type="radio" value="3" name="questionAnswer">
  8. <label for="questionAnswer">b. Movement Area Boundary Line-Stop!</label>
  9. </div>

  10. <div class="QuizAnswer">
  11. <input type="radio" value="4" name="questionAnswer">
  12. <label for="questionAnswer">c. Runway Centerline</label>
  13. </div>

  14. <div class="QuizAnswer">
  15. <input type="radio" value="5" name="questionAnswer">
  16. <label for="questionAnswer">d. Taxiway Edge Marking</label>
  17. </div>

  18. </div>