What is jMover? It is a jQuery plugin to move all or selected options between two select boxes
>>
>
<
<<
(function() { $("#example").jmover({ action: 'init', create: 0, sourceID: 'not_selected', targetID: 'selected' }); });
(function() { $("#container").jmover({ action: 'init' }); /** * Replace this with an actual method of filling up your list. * This is only for demonstration */ for(i = 1; i < 5; i++) { $("#container > #from > select").append('<option value="' + i + '">' + i + '</option>'); } });
Also I ran a simple for loop to fill it up. For production use one could fill it up with an AJAX call or another function.
... and that was it. Enjoy!
Get all the information from here
2009 Peter Halasz - Design and development