I have 3 radio button. Depending upon the radio button selected, I want to make the dropdownlist single select and multiple select and disabled. Any Help? What is the scope of using ng-class for this?
On page load, Multiple RadioButton will be checked and the DDL will be Multi-select.) If I change, radiobuttonValue == single, then DDL should be normal one(remove multi-select and if radiobuttonValue == all, then DDL should be disabled
<div class="form-group">
<div class="col-sm-4">
<div class="radio">
<label>
<input type="radio" name="portRadios" id="portRadios1" value="single" ng-model="activity.portRadios">
Single Port
</label>
<label>
<input type="radio" name="portRadios" id="portRadios2" value="multiple" ng-model="activity.portRadios" checked="checked">
Multiple Port
</label>
<label>
<input type="radio" name="portRadios" id="portRadios3" value="all" ng-model="activity.portRadios">
All Ports
</label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">City/Port :</label>
<div class="col-sm-4">
<select multiple name="ActivityPort" class="form-control" ng-model="activity.selectedPort" ng-show="portradios == single" ng-options="b.Name for b in portList track by Name">
<option value="">-- Select a Port --</option>
</select>
</div>
</div>