I have a form with id theForm which has the following div with a submit button inside:
style="text-align: right; width: 100%; background-color: white;">
When clicked, the function placeOrder() is called. The function changes the innerHTML of the above div to be "processing ..." (so the submit button is now gone).
The above code works, but now the problem is that I can't get the form to submit! I've tried putting this in the placeOrder() function:
But that doesn't work.
How can I get the form to submit?