我有一个简单的单选按钮。它有点工作。问题是当我单击是时,单选按钮被选中。当我单击否时,它没有被选中。
我希望它具有相同的 id !
下面是我的代码...
JSFIDDLE:http: //jsfiddle.net/bwYrA/
源代码:
<div class="control-group oneLine">
<label class="control-label" for="custom1" >1. Did you telephone the store prior to visiting?</label>
<div class="controls">
<div class="row">
<label class="radio col-xs-6 col-sm-4 col-md-4 ol-lg-6" for="custom1">
<input name="custom1" id="custom1" value="1" type="radio">
Yes </label>
<label class="radio col-xs-6 col-sm-4 col-md-4 ol-lg-6" for="custom1">
<input name="custom1" id="custom1" value="2" type="radio">
No </label>
</div>
</div>
</div>