title: Bootstrap radio group jquery validation
body: <p>Ive searched around, but couldnt get to find an answer as to how I could check using jquery validation that one of the buttons is MUST selected in a bootstrap radio button group before submission.</p>
  
  <p>I have this as part of the form,</p>
  
  <pre><code>&lt;div id="inputNumDel" name="inputNumDel" class="btn-group" data-toggle="buttons-radio"&gt;
          &lt;button type="button" id="num7"  class="btn "&gt;7&lt;/button&gt;
          &lt;button type="button" id="num8"  class="btn "&gt;8&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>which gives this <img src="https://i.stack.imgur.com/ukn6s.png" alt="enter image description here"></p>
  
  <p>and this is the validation code which is NOT working</p>
  
  <pre><code>$(document).ready(function(){
  
              $("#form").validate({
                  rules:{                     
                      inputNumDel:{
                              required:true,
                      },
  
              },          
              errorClass: "help-block"
              });
  
       });
  </code></pre>