S
srt5k
I have a web page with 2 html multiple select boxes on it, and I use
javascript to dynamicaly copy options from one box to another, before
deleting the option from the first box.
My issue is that in IE 7 more often than not after the option value has
been deleted
form.selone.options[index] = null;
the select box resets to the first item in the list, meaning that the
user has to search through the select box again to find the place they
where previously.
This did not occur in IE6 or Mozilla.
The only solution I can find is to set the selectedIndex to the
previous item in the list howeer, this is not ideal.
form.selone.selectedIndex = index-1;
Any ideas would be appreciated.
javascript to dynamicaly copy options from one box to another, before
deleting the option from the first box.
My issue is that in IE 7 more often than not after the option value has
been deleted
form.selone.options[index] = null;
the select box resets to the first item in the list, meaning that the
user has to search through the select box again to find the place they
where previously.
This did not occur in IE6 or Mozilla.
The only solution I can find is to set the selectedIndex to the
previous item in the list howeer, this is not ideal.
form.selone.selectedIndex = index-1;
Any ideas would be appreciated.