You Are Here Home >

“Form Submit is not a function” error message

If you try to submit a form with JavaScript and keep getting “Submit is not a function” then you probably have a field in your form named “submit”.

Take a look at your form maybe a hidden field:

<input type="text" name="submit" value="true" />

Or your submit button’s name:

<input type="submit" name="submit" />

Change the name of the field to something else and try.

This is one of those situations where you find yourself pulling your hair out :)

Happy coding.

“Form Submit is not a function” error message
Comments (0)   Filed under: JavaScript,Web Development   Tags: ,   Posted by: Hamid