title: Bootstrap 3: wizard with form validation
body: <p>I want to create a wizard with a form validation with bootstrap. I use the Twitter Bootstrap Wizard Plugin from <a href="http://vadimg.com/twitter-bootstrap-wizard-example/" rel="nofollow">http://vadimg.com/twitter-bootstrap-wizard-example/</a>. It uses jQuery Validate Plugin.</p>
  
  <p>My problem is now that the <strong>validation of radio buttons does not work</strong>. I can skip through the "tabs" even if no radio button is checked.</p>
  
  <p>Has anyone an idea what I've made wrong?</p>
  
  <p>This is my Javascript-Code:</p>
  
  <pre><code>    &lt;script&gt;
  $(document).ready(function() {
      var $validator = $("#commentForm").validate();
  
      $('#rootwizard').bootstrapWizard({
          'tabClass': 'nav nav-pills',
          'onNext': function(tab, navigation, index) {
              var $valid = $("#commentForm").valid();
              if(!$valid) {
                  $validator.focusInvalid();
                  return false;
              }
          }
      }); 
      window.prettyPrint &amp;&amp; prettyPrint()
  }); 
  &lt;/script&gt;
  </code></pre>
  
  <p>My input elements look like this here:</p>
  
  <pre><code>&lt;div class="btn-group" data-toggle="buttons"&gt;
  &lt;label class="btn btn-primary"&gt;
      &lt;input class="required" id="question21" name="question2" required="" type="radio"&gt; 1&lt;/label&gt; 
  &lt;label class="btn btn-primary"&gt;
      &lt;input id="question22" name="question2" type="radio"&gt; 2&lt;/label&gt; 
  &lt;label class="btn btn-primary"&gt;
      &lt;input id="question23" name="question2" type="radio"&gt; 3&lt;/label&gt; 
  &lt;label class="btn btn-primary"&gt;
      &lt;input id="question24" name="question2" type="radio"&gt; 4&lt;/label&gt; 
  &lt;label class="btn btn-primary"&gt;
      &lt;input id="question25" name="question2" type="radio"&gt; 5&lt;/label&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>Here the entire code of the site:</strong>
  <a href="http://chopapp.com/#aj3u0kz1" rel="nofollow">http://chopapp.com/#aj3u0kz1</a></p>
  
  <p>Thanks in advance!</p>