I am working on grid and I have two textboxes in html and i use angularjs. How can use mutual exclusion for my textboxes. If I input some value in first textbox, second textbox must be disabled. If I input some value in second textbox, first textbox must be disabled. Thanks
Asked
Active
Viewed 366 times
2 Answers
1
This can be solved with ngModel
and ngDisabled
.
<input ng-model="vm.input1" ng-disabled="vm.input2">
<input ng-model="vm.input2" ng-disabled="vm.input1">

GG.
- 21,083
- 14
- 84
- 130