0
<div class="row">
   <div class="form-group">
      <label class="control-label col-sm-6">Gold Foil Stamping : </label>
      <div class="col-sm-6"><input type="checkbox" name="gold_foil_option" value="Gold_Silver_Printing"> Gold / Silver Printing<br>
      <input type="checkbox" name="gold_foil_option1" value="Gold_Foil_Stamping"> Gold Foil Stamping</div>
   </div>
</div>

I want to select one check box out of two check box using javascript? What is the possible way to select one checkbox using javascript? Can i name both the name as same so as to select one checkbox at a time? I want to use only javascript only at a time?

TRiNE
  • 5,020
  • 1
  • 29
  • 42
  • 8
    You should use `radio` element for it – Satpal Feb 10 '17 at 08:31
  • 4
    There's something [familiar here](http://stackoverflow.com/questions/42152281/only-one-radio-button-must-be-selected-at-a-time#42152281), but a different user? – Teemu Feb 10 '17 at 08:37
  • Possible duplicate of [Only one radio button must be selected at a time](https://stackoverflow.com/questions/42152281/only-one-radio-button-must-be-selected-at-a-time) – met4000 Sep 19 '17 at 23:22

0 Answers0