title: Set the property required at checkbox in bootstrap
body: <p>I have a simple form with a text-input and two checkbox and I need to set the property "required" at checkbox (I need that at least one of that checkbox is checked).</p>
  
  <pre><code>&lt;div class="control-group"&gt;
      &lt;label class="control-label" for="inputEmail"&gt;&lt;?= $this-&gt;labelfieldEmail; ?&gt;&lt;/label&gt;
      &lt;div class="controls"&gt;
          &lt;input type="text" name="email" id="emailField"
          placeholder="Email" required&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="control-group"&gt;
      &lt;label class="control-label" for="productField"&gt;&lt;?= $this-&gt;labelfieldProduct; ?&gt;&lt;/label&gt;
      &lt;div class="controls" &gt;
          &lt;input type="checkbox" id="inlineCheckbox1" value="widget" name="product[]" &lt;?php if ($this-&gt;selectedProduct == "widget") { echo "checked"; }?&gt;/&gt; 
          Widget for website
          &lt;br/&gt;
          &lt;input type="checkbox" id="inlineCheckbox2" value="app" name="product[]" &lt;?php if ($this-&gt;selectedProduct == "app") { echo "checked"; }?&gt;/&gt; 
          App mobile
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Please, Any suggests?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I tried to use jqBootstrapValidation library in the follow way, but it doesn't works:
  1. add library
  2. Add this into <code>&lt;head&gt;</code> tag:</p>
  
  <pre><code>&lt;script&gt;
  $(function () { 
      $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); 
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>3 this is my form code:</p>
  
  <pre><code>&lt;form class="form-horizontal" method="POST" action="&lt;?= $this-&gt;baseUrl($this-&gt;pathBusinessThankyou);?&gt;"&gt;
      &lt;div class="row-fluid"&gt;
  
          &lt;div class="row-fluid"&gt;
              &lt;br /&gt;
              &lt;div class="control-group"&gt;
                  &lt;label class="control-label" for="inputName"&gt;&lt;?= $this-&gt;labelfieldName; ?&gt;&lt;/label&gt;
                  &lt;div class="controls"&gt;
                      &lt;input type="text" id="fullnameField" name="fullname" required /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="control-group"&gt;
                  &lt;label class="control-label" for="inputEmail"&gt;&lt;?= $this-&gt;labelfieldEmail; ?&gt;&lt;/label&gt;
                  &lt;div class="controls"&gt;
                      &lt;input type="email" id="emailField" name="email" required /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="control-group"&gt;
                  &lt;label class="control-label" for="productField"&gt;&lt;?= $this-&gt;labelfieldProduct; ?&gt;&lt;/label&gt;
                  &lt;div class="controls" &gt;
                      &lt;label class="checkbox"&gt;
                          &lt;input type="checkbox" 
                          data-validation-minchecked-message="&lt;?= $this-&gt;validationOneProduct; ?&gt;" 
                          data-validation-minchecked-minchecked="1" value="widget" name="product[]" 
                          &lt;?php if ($this-&gt;selectedProduct == "widget") { echo "checked"; }?&gt; /&gt;
                          Widget per il tuo sito
                      &lt;/label&gt;
                      &lt;label class="checkbox"&gt;
                          &lt;input type="checkbox" value="app" name="product[]" aria-invalid="false"
                          &lt;?php if ($this-&gt;selectedProduct == "app") { echo "checked"; }?&gt; /&gt;
                          App per il tuo hotel
                      &lt;/label&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="control-group"&gt;
                  &lt;label class="control-label" for="inputEmail"&gt;&lt;?= $this-&gt;labelfieldNote; ?&gt;&lt;/label&gt;
                  &lt;div class="controls"&gt;
                      &lt;textarea rows="3" name="comment" id="commentField"&gt;&lt;/textarea&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="control-group"&gt;
                  &lt;div class="controls"&gt;
                      &lt;button type="submit" class="btn input-block-level btn-large btn-success"&gt;
                          &lt;?= $this-&gt;labelSendRequest; ?&gt;
                          &lt;i class="icon-ok icon-white"&gt;&lt;/i&gt;
                      &lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>