JavaScript: Add selected items of listbox to other listbox?
I want to place to listboxes (drop-down with multi-select on) on a web page. I want to provide 2 buttons, "Add To List", "Remove From List". When the user clicks the "Add To List" button, I want the selected items in listbox1 to move over to listbox2. When they click on "Remove From List", I want the selected items in listbox2 to move back over to listbox1. Is this possible with JavaScript?
Any help or examples would be greatly appreciated.
Dan
1 Attachment(s)
Re: JavaScript: Add selected items of listbox to other listbox?
Quote:
Originally posted by dbassettt74
I want to place to listboxes (drop-down with multi-select on) on a web page. I want to provide 2 buttons, "Add To List", "Remove From List". When the user clicks the "Add To List" button, I want the selected items in listbox1 to move over to listbox2. When they click on "Remove From List", I want the selected items in listbox2 to move back over to listbox1. Is this possible with JavaScript?
Any help or examples would be greatly appreciated.
Dan
Yes Dan, its very much possible with JavaScript. Here is an example that i used in one of my project.
VBF does not allow html file to be uploaded so i changed the extention of the file to .txt, change it back to .html after you download.
Hope this helps.
Danial