我想在成功验证时启用保存按钮:
<form name="schedulerForm" class="form-horizontal">
<div class="row">
<div class="col-lg-12 col-md-12" ng-class="{'has-error' : schedulerForm.jobName.$invalid && !schedulerForm.jobName.$pristine }">
<h4 class="text-center">Assign Job Schedule</h4>
<select class="form-control" ng-change="getJobDetail(filterType)"
ng-model="filterType" id="jobName" required name="jobName">
<option value="">Select Job</option>
<option value="{{job.id}}" ng-selected="filterType == job.id"
ng-repeat="job in jobs" ng-disabled="jobStatus">{{job.jobName}}</option>
</select>
</div>
</div>
<button type="button" class="btn btn-primary"
ng-click="assignSchedule()" ng-disabled="schedulerForm.$invalid">Save</button>
</form>
在成功验证时,我无法使启用按钮始终处于禁用模式。 请帮帮我或指导我做错的地方......