How can I move items from one list box control to another listbox control using JavaScript in ASP.NET?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- Carriage Return (ASCII chr 13) is missing from tex
- void before promise syntax
- Keeping track of variable instances
If you're happy to use jQuery, it's very, very simple.
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)
This code assumes that you have an anchor or that will trigger to movement when it is clicked:
A library-independent solution:
HTML
CSS (example)
Quick test FF3 and IE6 & 7 only.