I have 2 list boxes on the page, one which is filled with all Clients, the other I want to fill when the user double clicks on a client in the all clients list. It should then disappear from the All Clients list box and appear in the Selected Clients listbox.
All you have to do is have a javascript function accepting the 2 select boxes as parameters. Loop through the first one and if the current item is selected, add it to the second. Set the current item of the first list box value to null and decrement the current counter after adding the current item's value and text to the second select box at the index of the second one's current length.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.