ggallen
10-17-2003, 04:10 PM
I need to use a Select List of Options (same options) about
10 or 20 times in a page, and there could be quite a lengthy
list of options.
Rather than populate each List on loading, I figured I'd populate
one internal list in javascript as a base, then and create a blank
Select List in HTML. When each List is selected for use, I wanted
to have a javascript routine, move the contents of the internal
list to the this previously blank list, then do the selection, and on
blur clear out the list, except for the selected item (optional).
Is there an easy way to move an entire content of a select
list to another, without looping through and adding each
individually?
Thanks
George
10 or 20 times in a page, and there could be quite a lengthy
list of options.
Rather than populate each List on loading, I figured I'd populate
one internal list in javascript as a base, then and create a blank
Select List in HTML. When each List is selected for use, I wanted
to have a javascript routine, move the contents of the internal
list to the this previously blank list, then do the selection, and on
blur clear out the list, except for the selected item (optional).
Is there an easy way to move an entire content of a select
list to another, without looping through and adding each
individually?
Thanks
George