function MyMoveItem(fromObj, toObj) {
    for (var selIndex = fromObj.length - 1; selIndex >= 0; selIndex--) {
        // Is this option selected?
        if (fromObj.options[selIndex].selected) {
            // Get the text and value for this option.
            var newText = fromObj.options[selIndex].text;
            var newValue = fromObj.options[selIndex].value;

            // Create a new option, and add to the other select box.
            var newOption = new Option(newText, newValue)
            toObj[toObj.length] = newOption;

            // Delete the option in the first select box.
            fromObj[selIndex] = null;
        }
    }
}
//moves items from left select to right select
moves items from left select to right select
moves items from left select to right select
function MyMoveItem(fromObj, toObj) {
    for (var selIndex = fromObj.length - 1; selIndex >= 0; selIndex--) {
        if (fromObj.options[selIndex].selected) {
            var newText = fromObj.options[selIndex].text;
            var newValue = fromObj.options[selIndex].value;
            var newOption = new Option(newText, newValue)
            toObj[toObj.length] = newOption;
            fromObj[selIndex] = null;
        }
    }
}
function MyMoveItem ( fromObj , toObj ) { for ( var selIndex = fromObj . length - 1 ; selIndex >= 0 ; selIndex -- ) { if ( fromObj . options [ selIndex ] . selected ) { var newText = fromObj . options [ selIndex ] . text ; var newValue = fromObj . options [ selIndex ] . value ; var newOption = new Option ( newText , newValue ) toObj [ toObj . length ] = newOption ; fromObj [ selIndex ] = null ; } } }
moves items from left select to right select
moves items from left select to right select
// Is this option selected? // Get the text and value for this option. // Create a new option, and add to the other select box. // Delete the option in the first select box.