I am working on a function that will take an array of elements and loop thru them to change a particular style property. The current function is as follows
Thanks in advance,Code:function style(prop,val) { if (els == null) {//els is the array of elements to be changed err('missing elements'); return false; } for(i in els) { var x = els[i].style; x.prop = val;//This is where my problem is. Is there a way to do this? } }
-Sad1sm0


Reply With Quote
Bookmarks