Problem in ordring the list in Javascript

Hi,

Sorry to post a javascript question here.

I have two multiselect lists say List1 and List2. List1 will have some values populated from DB. I will have buttons to move the values from List1 to List2 and viceversa. When I move the values to other list box, I will remove them from the source list box.

Say, if I have text Zero,One,Two, Three and Four.And I have set the attribute "Values" also same. I move One and Two to List2. Now I want to move One back from List2 to List1.

What happens is when I move the One and Two, the index value of Three in List1 is changed to 1 . so when I move one back it replaces the value three. ( I use the attribute value as selectedIndex)

What can be done to maintain the order?

Similarly I will have buttons to move the values up and down in List2.

How to do that?

Can anyone help me..

Thanks

[892 byte] By [laks77a] at [2007-10-2 7:22:49]
# 1
Thanks..I got it!!
laks77a at 2007-7-16 20:59:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...