HTML代碼,其中按鈕組聲明我想用一個複選框
<tr>
<div class="checkbox">
<td class="fc">INACTIVE <label> <input type="checkbox" data-toggle="toggle-checkbox" ng-change="isCheckboxChecked()" > </label></td>
<td style="visibility:$scope.isCheckboxChecked()=="true"">
<div class="btn-group">
<label class="btn-primary btn ">
<input type="radio" name="options4" ng-model=" option4" value="rewards" ng-required="!option4" > Rewards
</label>
<label class="btn-primary btn ">
<input type="radio" name="options4" ng-model=" option4" value="awards" ng-required="!option4"> Awards
</label>
<label class="btn-primary btn">
<input type="radio" name="options4" ng-model=" option4" value="offers" ng-required="!option4"> Offers
</label>
</div>
</td>
</tr>
該複選框角腳本啓用和禁用單選按鈕組。
validationApp.controller('mainController', function($scope) {
$scope.isCheckboxChecked = function() {
return ($scope.isCheckboxChecked(true)
);
}
}
這裏有什麼問題? –
按鈕組不會禁用此代碼 –