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)
1.4m articles
1.4m replys
5 comments
57.0k users