flnMichael
Programmer
Hey,
I know this may be a stupid question, and maybe I'm overlooking the obvious, but I'm still a little stumped.
This is the code I have right now:
<select name=leak_list style=display:none>
<option selected value=0>Select Leak Location</option>
<option value='Upper Area'>Upper Area</option>
<option value='Lower Area'>Lower Area</option>
<option value='Middle Area'>Middle Area</option>
etc...
</select></td>
What I need from this is the value along with the appropriate index associated with the choice. Now, I know I can say the value=1,2,3 but I need the 'Upper Area' to go to the next page. The thing is that I generate the list from vbscript function I use, so the value may change at any time based on a file I feed into it, so the list may have 2 options or 15 depending on what page I use. Is there a way I can index the option without changing the current code?
Thanks
Mike
I know this may be a stupid question, and maybe I'm overlooking the obvious, but I'm still a little stumped.
This is the code I have right now:
<select name=leak_list style=display:none>
<option selected value=0>Select Leak Location</option>
<option value='Upper Area'>Upper Area</option>
<option value='Lower Area'>Lower Area</option>
<option value='Middle Area'>Middle Area</option>
etc...
</select></td>
What I need from this is the value along with the appropriate index associated with the choice. Now, I know I can say the value=1,2,3 but I need the 'Upper Area' to go to the next page. The thing is that I generate the list from vbscript function I use, so the value may change at any time based on a file I feed into it, so the list may have 2 options or 15 depending on what page I use. Is there a way I can index the option without changing the current code?
Thanks
Mike