title: how to validate radio[required] via jquery
body: <p>ı have 10 group of radio. each group have 2 or 3 or more radio it doesnt matter. you need to select at least 1 radio from each group.</p>
  
  <p>when you submit form it must check and return error if any of them(group) left blank. </p>
  
  <p>ı try some code but couldnt solve it. ı wrote this code to find and show error but it find one by one so its submitting form if there is 1 full.</p>
  
  <pre><code> $('#myForm').submit(function () {
  
       $(".radiogrup").each(function () {
           var sel = $(this).find("input[type='radio']:checked").val();
  
           if (sel == null) {
               alert("error msg");
               return false;
  
           }
  
       });
  
  
   });
  </code></pre>
  
  <p>html:</p>
  
  <p>if you know how to configure required="required" maybe ı can use it.</p>
  
  <pre><code>&lt;div class="radiogrup"&gt;
      &lt;form id="form1" name="form1" method="post" action=""&gt;
        &lt;p&gt;
          &lt;label&gt;
            &lt;input type="radio" name="RadioGroup1" value="radyo" id="RadioGroup1_0" /&gt;
            Radyo&lt;/label&gt;
          &lt;br /&gt;
          &lt;label&gt;
            &lt;input type="radio" name="RadioGroup1" value="radyo" id="RadioGroup1_1" /&gt;
            Radyo&lt;/label&gt;
          &lt;br /&gt;
  
          &lt;input name="" type="submit" /&gt;
        &lt;/p&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>