PDA

View Full Version : Select-option


avaloncm
01-25-2005, 01:43 PM
In the following snippet...
How do I reference the text in each option? The setValueInputs() requires in integer to work, so I can not make the value and the corresponding text the same.

Thanks!


<select name="SearchSubject" class="bn8" onchange="JavaScript:setValueInputs(value);";"JavaScript:chooseLayers(this.SelectedIndex);";onclick="JavaScript:resetSelects();"; size=1>

<option value="layers/layerdesc.html">Select a Layer Below</option>
<option value="1">Building Area</option>
<option value="2">Building within Zoning</option>
<option value="3">Other</option>
</select>

Kravvitz
01-26-2005, 04:25 PM
option[x].value
option[x].text

avaloncm
02-09-2005, 05:09 PM
"JavaScript:setValueInputs(value);"

Instead of passing the value from the Select Statement, I want to pass the text. I can figure out how to make that work. Thanks!