Property ‘submit’ of object #
is not a function
Check your <form> element. It MUST not have any HTML element with ID attribute of “submit”.
If you have such element, rename the ID attribute to some other name.
Let’s say if your form element has a button with ID “submit”. When you trigger yourform.submit(), your browser actually tries to run your button element as a function instead of running the form’s submit function.
Hope this helps. Please “Like” this post if it works for you :)
or Subscribe to specific category only :