How can I toggle radio buttons lke upon clicking each one should enable the corresponding element say element and vice versa. Code that I tried:
CheckBox 1: <input type="radio" name="somethign" value="1" ng-model="checkboxSelection" ng-click="disable1='true';disable2='false'"/>
<select ng-model="something" ng-options="r.id as r.name for r in data1" ng-disabled="disable1">
CheckBox 2: <input type="radio" name="somethign" value="2" ng-model="checkboxSelection" ng-click="disable2='true';disable1='false';"/>
<select ng-model="something" ng-options="r.id as r.name for r in data2" ng-disabled="disable2">
I'm not to toggle based on the above code.Can anyone pls suggest a different alternative?Thanks
ng-disabledtong-disabled="checkboxSelection == 1"