How can I move items from one list box control to another listbox control using JavaScript in ASP.NET?
If you're happy to use jQuery, it's very, very simple.
$('#firstSelect option:selected').appendTo('#secondSelect');
Where #firstSelect is the ID of the select box.
I've included a working example here:
http://jsbin.com/aluzu (to edit: http://jsbin.com/aluzu/edit)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With