mmaz
Programmer
- Nov 22, 2000
- 347
Hi! I have a listbox where the user can select multiple values. I wrote a function in Javascript that's called on Submit. I want to get the values selected by the user.
This doesn't work, any ideas?
myClientID = document.frmParameters.lstClient.value;
intLength = document.frmParameters.lstClient.length;
for (i=0;i < intLength;i++) {
if (document.frmParameters.lstClient.options(i).selected) {
myString = myString + myClientID;
}
}
My problem is, the value of myClientID doesn't change even though i is incremented. Help!
Thanks a bunch!
Marie
This doesn't work, any ideas?
myClientID = document.frmParameters.lstClient.value;
intLength = document.frmParameters.lstClient.length;
for (i=0;i < intLength;i++) {
if (document.frmParameters.lstClient.options(i).selected) {
myString = myString + myClientID;
}
}
My problem is, the value of myClientID doesn't change even though i is incremented. Help!
Thanks a bunch!
Marie