Is there a way to modify a DOM element every 10 seconds?
I attempted the following approach:
var endurance = angular.element('.progressbar').height();
var endurance2 = angular.element('.progressbar').css('height', endurance-25);
window.setInterval(foo, 10000);
foo();
function foo()
{
console.log("Update"); //This is executed
endurance2 = angular.element('.progressbar').css('height', endurance-25); //But this doesn't work
}
Although "console.log("update");" works, the element is not getting updated.
Can anyone provide assistance with this issue?