I use angularjs and I DO NOT have a <form> (IMPORTANT!!!)
My template html is:
<tr ng-repeat="usage in usages">
<td>
<input class="form-control" type="number" ng-model="usage.calls" required/>
</td>
<td>
<a href="" ng-disabled="disabled()" class="btn btn-primary btn-xs glyphicon glyphicon-saved" ng-click="save(usage)"></a>
</td>
</tr>
I want change CSS on <input> if empty and put disabled save action.