javascript - change attribute of input checkbox and see changes -
i try select elements table , set attribute 'checked'.
that's code:
for (var i=0 ; i<$scope.assets.length ; i++ ){ if ($scope.assetsfrommodel.includes($scope.assets[i].interfaces.ip_addresses[0].value)){ var el = angular.element($scope.assets[i].interfaces.ip_addresses[0].value); console.log(el.attr('checked','checked')); } }
as can see elements angular.element (i see in console found elements need) nothing happen. should do?
Comments
Post a Comment