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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -