Uncaught TypeError: form.submit is not a function in javascript

preview_player
Показать описание
Ths error means that you named your submit button or some other element submit. Rename the button to btnSubmit and your call will magically work.

When you name the button submit, you override the submit() function on the form.
Рекомендации по теме