Zynex
02-19-2007, 11:16 AM
I was wondering. Is it possible to retrieve the value of a select. I have a select with all the months of the year.
<select name="selection">
<option>januari</option>
<option>Februari</option>
<option>Maart</option>
<option>April</option>
<option>Mei</option>
<option>Juni</option>
<option>Juli</option>
<option>Augustus</option>
<option>September</option>
<option>Oktober</option>
<option>Novermber</option>
<option>December</option>
</select>
When someone chooses for instance "februari" I want that value to be given to an <input type="text" name="invoer">
I tried things like
invoer.value = selection.value;
But that did not work. How do I get this value??
Thanx in advance,
Zynex
<select name="selection">
<option>januari</option>
<option>Februari</option>
<option>Maart</option>
<option>April</option>
<option>Mei</option>
<option>Juni</option>
<option>Juli</option>
<option>Augustus</option>
<option>September</option>
<option>Oktober</option>
<option>Novermber</option>
<option>December</option>
</select>
When someone chooses for instance "februari" I want that value to be given to an <input type="text" name="invoer">
I tried things like
invoer.value = selection.value;
But that did not work. How do I get this value??
Thanx in advance,
Zynex