So I have a MultiSelect box with x values which I need the ability to move to another MultiSelect box and vise versa.
<select class="boxa" multiple="multiple">   <option value="volvo">Volvo</option>   <option value="saab">Saab</option>   <option value="mercedes">Mercedes</option>   <option value="audi">Audi</option> </select>  <select class="boxb" multiple="multiple">  </select>   Need to move all or one of the values of boxa to boxb on a button click, also with the ability to move the values back from boxb to boxa.
Does jQuery have anything like this or is this a custom snippet of code?
$().ready(function() {    $('#add').click(function() {     return !$('#select1 option:selected').remove().appendTo('#select2');    });    $('#remove').click(function() {     return !$('#select2 option:selected').remove().appendTo('#select1');    });   }); 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With