mardi 29 mars 2016

is possible allow a user to select only one checkbox (bootstrap checkbox-x)?

I'm working with bootstrap checkbox-x plugin : http://ift.tt/1MvkvMq

How can I only allow a user to select only one checkbox?

Option 1
          <div class="col-md-12 has-success bottom-10 no-padding-left">
              <input class="form-control bottom-15" id="check-2" type="checkbox" data-toggle="checkbox-x" data-size="sm" data-three-state="false">
              <label class="cbx-label" for="check-2">Option 2 </label>
          </div>

          <div class="col-md-12 has-success bottom-10 no-padding-left">
              <input class="form-control bottom-15" id="check-3" type="checkbox"  data-toggle="checkbox-x" data-size="sm" data-three-state="false">
              <label class="cbx-label" for="check-3">Option 3 </label>
          </div>

Thanks!




Aucun commentaire:

Enregistrer un commentaire