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.
Hamid Alipour is a partner in Codehead, LLP with his wife, Tess. Hamid speaks 12 markup and programming languages [Yes, 12: PHP, CSS, Ajax, JavaScript, HTML/XHTML, Java, Python, C/C++, ASP, Visual Basic, Scheme and Action Script]; has a penchant for solving the unsolvable; an affinity for clean, hand-written code and is a Zend Certified 