Extracting Data from Select Box

admin

Administrator
Staff member
I'm sure the answer to this is simple, I just don't have the programming experience to solve it!

First of all, here is the page that I am dealing with:
<!-- w --><a class="postlink" href="http://www.meltedmonitor.com/intrax.html">www.meltedmonitor.com/intrax.html</a><!-- w -->

I have hacked together some code from other users that will generate a submenu from a listbox, then the sub-selection

fills in three text boxes.

Example:
A user is selecting a set of lowering springs for his car. He chooses Acura, then Integra 86-89. The three text

boxes are filled in automatically with the retail price, the price he is going to get and his car model information

(taken from the submenu).

The problem is that I don't know how to pull the text from the submenu and get it to fill into the third text box! I

can get the value of the selection to appear and I seem to be pretty good at making [object] appear (which is how I

left it for now).

The javascript call is in the select box header:


<select name="model" size="5" onChange="os0.value=(this.options[selectedIndex]);retail.value=
(this.value);doMath()">



The part that I have been playing with is the "this.options[selectedIndex]" part. If I use "this.value" it will just

put the price into the third text box. Grrrrr...

There has to be a way to extract this data. Help!!!!

-- Darren
 
Back
Top