angular.js - How to add attributes to dom using angular?
phpcn_u1582
phpcn_u1582 2017-05-15 16:50:51
0
1
568
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?

phpcn_u1582
phpcn_u1582

reply all(1)
滿天的星座

http://docs.angularjs.cn/api/ng/directive/ngDisabled

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template