Hi All,
Here is my problem. I'm trying to get the value(s) from a select box-multiple which are selected and store them to a variable.
How would I do this? In my loop I'm seeing all items in the select box. I tried using venOption[venIndex].text but it only picked up the first value.
Here is what I have so-far:
TIA,
T
Here is my problem. I'm trying to get the value(s) from a select box-multiple which are selected and store them to a variable.
How would I do this? In my loop I'm seeing all items in the select box. I tried using venOption[venIndex].text but it only picked up the first value.
Here is what I have so-far:
Code:
...
var venOption = document.forms[frmName].venID.options;
var venIndex = document.forms[frmName].venID.selectedIndex;
var boxLength = document.forms[frmName].venID.length;
for(i=0; i<boxLength; i++) {
alert("venSel is ... " + venOption[i].text);
}
...
TIA,
T