Results 1 to 4 of 4
Jul 25, 2001, 08:38 #1
- Join Date
- Oct 2000
- Springfield, Missouri, U.S.A.
- 0 Post(s)
- 0 Thread(s)
How do I set a single value to multiple variables without using arrays?
so this is how it breaks down:
as you can see, these div ids have a text color attribute of 'black'. i have to set 6 of these variables to the same value, which is annoying to say the least when doing it manually. i can not use an array because the div id's can not be arrays.
so the question is, how can i use a for loop to set the same value for all of these div id's?
i was thinking something along the lines of this:
for (var x = 0; x <= 2; x++)
(disableDiv + x) ='black'