- How do I disable input field based on condition in React?
- How to conditionally disable an input field in angular?
How do I disable input field based on condition in React?
Disable the TextBox by adding the e-disabled to the input parent element and set disabled attribute to the input element.
How to conditionally disable an input field in angular?
The ng-disabled directive sets the disabled attribute of a form field (input, select, or textarea). The form field will be disabled if the expression inside the ng-disabled attribute returns true. The ng-disabled directive is necessary to be able to shift the value between true and false .