Hello
I have a multiple select list as follows:
<select name="selList" multiple>
<option value="1"Item 1</option>
<option value="2"Item 2</option>
<option value="3"Item 3</option>
</select>
When the form in which this select list is submitted, I wish to select
all items in the list. Therefore on form submit, I call a javascript
which does the following:
for(i = 0; i < document.forms[0].selList.length ; i++)
document.forms[0].selList[i].selected = true;
Before the submit is done, I can visually see on the page that all
items in the list have been selected.
However when I retrieve the request values on the next page, I get only
the last element in the list. What am I doing wrong? Any suggestions
would be welcome.
Thanks
Swetha