Unable to `submit()` an html form after intercepting the submit with javascript
The reason for the error when trying to call form.submit() is that your submit button is called “submit”. This means that the “submit” property of your Form object is now a reference to the submit button, overriding the “submit” method of the form’s prototype. Renaming the submit button would allow you to call the submit() … Read more