In my project I am using angular js. I have a form and I am filling the form details using rest api. The form will get filled by object. I want to disable textbox which value was empty, so I used the following code.
<input id="Level2" ng-disabled="!EditMenu.Level2" ng-model="EditMenu.Level2" type="text" class="form-control" />
Its working fine. Its disabled when values are empty, but here my problem when users try to edit the values, they clear all the value to enter new value but user cannot be update any field since its got disabled when user clear all the value from the text box. Please help me on this.