How can I restore the order of an (incomplete) select list to its original order?
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-04-20T22:26:50Z
Indexed on
2010/04/20
22:43 UTC
Read the original article
Hit count: 253
I have two Select lists, between which you can move selected options. You can also move options up and down in the right list.
When I move options back over to the left list, I would like them to retain their original position in the list order, even if the list is missing some original options. This is solely for the purpose of making the list more convenient for the user.
I am currently defining an array with the original Select list onload.
What would be the best way to implement this?
© Stack Overflow or respective owner