html
<input type="checkbox" ng-model="vm.isChecked"/> <select> <option>--请选择--</option> <option>一些选项</option> </select>
I want to delete/add the disabled
attribute to select by judging whether the checkbox is checked/unchecked. How to write js? Do you use ng-if
?
http://docs.angularjs.cn/api/ng/directive/ngDisabled