Hi Planetsim, the loop is part of a function that gets called repeatedly to code many repeating elements on the web pages.
I am using drop boxes and want them to affect what is on the page, so each click onsubmit()'s.
Thing is, I want the drop boxes underneath the part of the page that they will affect, but this means the variable they set (which affects part of the page) isn't available until after that part of the page is coded. If I position the drop boxes above the page element they affect, the variable is available to pass to the function that creates/recreates the page element.
But I'm fussy about layout and I refuse to compromise 🙂
So the variables have to exist , one for each configurable page element. The page elements are coded via a function, I'm not going to change that - I would only need one variable if I put the drop boxes above, and reuse it in each iteration. My way though, each drop box rejigs the following page element, not the previous, as its supposed to.
This thing above is a workaround. I suppose I could use an array...
Oh. :o
Too.
Many.
Thoughts...
I'll get it working, and make it better later.
Thanks Tsinka