I am trying to retrieve selected values from a multiple select object
on a page:
*** Selection Page ***
<form name="theForm">
<select name="numbers" MULITPLE>
<option value="1">One</option>
<option value="2">Two</option>
<option value="2">Three </option>
</select>
</form>
What I want to do is to pass the selected values from "Selection page"
to its parent window. Right now, I pass the values by doing this (in
JavaScript):
window.opener.p arentForm.num.v alue = document.theFor m.numbers.value ;
I'm assuming if mulitple selections are made (lets say One and Two are
selected), document.theFor m.numbers.value will be a collection of the
selected option values. Is this correct?
If so, how can I retrieve each option value when coding parent window?
Thanks.
BUNG
on a page:
*** Selection Page ***
<form name="theForm">
<select name="numbers" MULITPLE>
<option value="1">One</option>
<option value="2">Two</option>
<option value="2">Three </option>
</select>
</form>
What I want to do is to pass the selected values from "Selection page"
to its parent window. Right now, I pass the values by doing this (in
JavaScript):
window.opener.p arentForm.num.v alue = document.theFor m.numbers.value ;
I'm assuming if mulitple selections are made (lets say One and Two are
selected), document.theFor m.numbers.value will be a collection of the
selected option values. Is this correct?
If so, how can I retrieve each option value when coding parent window?
Thanks.
BUNG
Comment