In your code I can see (parts of) 2 JavaScript functions move()
and invoke(but)
.
The first one moves data from one DOM element ('Allocation') to another ('tgt1').
The second is attempting to submit data to the server/jsp page.
Is that correct and that what you are trying to do?
BTW: you should call them in the order of move(); invoke(...);
, NOT other way around because once the form is submitted move() will not run - nothing can happen on the client side, because the processing left the page.
I noticed that in your move() function you disable DOM element "Send" (document.getElementById("Send").disabled=true;
) which happens to be your submit button. This action will prevent the form from being submitted, so you should probably remove that line.