2013-11-22 169 views
2

我目前使用Bootstrap 3.從bootstrap文檔中,我發現fieldset可以啓用和禁用表單字段。那麼,我如何使用無線電控制打開和關閉?Bootstrap:Fieldset啓用/禁用單選按鈕

HTML無線電控制

<form> 
    <div class="form-inline"> 
    <label for="inputPassword" class="col-sm-6 control-label content_label" 
      style="margin-right:20px"> Do you want to change password ? </label> 
    <div class="radio"> 
     <label> 
     <input type="radio" name="optionsRadios" id="optionsRadios1" 
       value="option1" > 
      Yes 
     </label> 
    </div> 
    <div class="radio" style="margin-left:10px;"> 
     <label> 
     <input type="radio" name="optionsRadios" id="optionsRadios2" 
       value="option2" checked> 
       No 
     </label> 
    </div> 
    </div> 
</form> 

回答