said the following on 9/26/2005 1:29 AM:
> is there a way to get the index of an array aside from the values that
> you passed from a form?
What array? There are no JS Arrays defined in the code you posted. Are
you using PHP server-side by chance? PHP likes those arrayName[] constructs.
And, it would be better suited as an object instead of an array.
If the page is generated, have it generate objects for each section you
want to keep up with. Then its a matter of going through the object's
properties and getting what you want. But, there is a simpler way if you
simply redefine your name/IDs/Labels so that it becomes easier.
The whole thing begs the question "What are you trying to accomplish
exactly?"
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly