Getting error in the following code:
var attribute=["position","top","bottom","left","right","zIndex"],
prop=["fixed","0","0","0","0","-2"];
for(var i=0;i<attribute.length;i++)
video.style.attribute[i]=prop[i];
Error displayed by the console: Uncaught TypeError: Cannot set property '0' of undefined
.
Please Help!