In this video I so you how to submit a form using javascript. I used async and await with a try-catch. You will need to change the code to get everything to work.
Starting Code:
https://raw.githubusercontent.com/php...
Demo
https://phptuts.github.io/js-video-pr...
Final Code
https://raw.githubusercontent.com/php...