I have a dropdownlist which binds values as SITE,FIBER & OTHERS and below that there are 2 radibuttons named as Approve and Reject.
Now what I want is I want to hide the Reject radio button if FIBER is selected from the dropdownlist.
How to achieve this using Angular JS?
Below is my code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.4/angular.min.js"></script>
<!-- dropdownlist -->
<select class="form-control" id="FiberLead_ddlUtility" ng-model="UtilityModel" ng-change="refreshAllDllCMM()">
<option value="">Please Select</option>
<option ng-value="UTILITY" ng-repeat="UTILITY in UTILITYS">{{UTILITY}}</option>
</select>
<!-- Radio button -->
<div class="customeRadioWrap">
<div class="customeRadio">
<input type="radio" id="rdApprove" name="radio-group"
ng-value="true" ng-model="radioAppRejSelected">
<label for="rdApprove">Approve</label>
</div>
<div class="customeRadio">
<input type="radio" id="rdReject" name="radio-group"
ng-value="false" ng-model="radioAppRejSelected">
<label for="rdReject">Reject</label>
</div>
<button class="btn btn-default customBtn"
ng-click="ConfirmApproveRejectCMM()">
<i class="fa fa-check" aria-hidden="true"></i>
Submit
</button>
</div>