Move Options between Two Lists

Move selected players from one multiple-select list to another, move them back, or move all options at once. This pattern works for team building, permissions and category assignment.

Moving players between two dropdown lists

Move Selected Options Top ↑

$( "#move-right" ).on( "click", function () {
    $( "#available-team option:selected" )
        .appendTo( "#selected-team" );
});

$( "#move-left" ).on( "click", function () {
    $( "#selected-team option:selected" )
        .appendTo( "#available-team" );
});

Move All Options Top ↑

$( "#move-all-right" ).on( "click", function () {
    $( "#available-team option" )
        .appendTo( "#selected-team" );
});

$( "#move-all-left" ).on( "click", function () {
    $( "#selected-team option" )
        .appendTo( "#available-team" );
});

← Listbox tutorial · Database dropdowns

Original football-team demo →






plus2net.com






✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer