What exactly are you pressing as a 'submit button' ? Is it the built in "move left" or "move right" buttons? If not, you may need to familiarize yourself with the client side API
to confirm you are using the get functions correctly . Make sure you are using get_selectedItems as opposed to get_selectedItem to make sure you are receiving all selected items at once.