I have two dropdown lists. List1 has options a, b, c, d. List2 has options e, f, g, h. I want when a in List1 is selected. The value in List 2 should be e and at the same time disable the selection in List2. I would like to know how I can implement it? Thanks in advance!
<div class="form-group">
<label>List1 </label>
<div class="col-sm-6">
<select class="form-control" ng-model="list1">
<option ng-repeat="option in list1Choice" value={{option}} ng-selected="option == list1" ng-bind="option"></option>
</select>
</div>
</div>
<div class="form-group">
<label>List2 </label>
<div class="col-sm-6">
<select class="form-control" ng-model="list2">
<option ng-repeat="option in list2Choice" value={{option}} ng-selected="option == list2" ng-bind="option"></option>
</select>
</div>
</div>