document.forms[0].submit is not a function

Firstly check do you have any fields or buttons etc... on the form that have the name or id "submit".
If so these will shadow (hide) the submit function of the form object and thus attempting to call form.submit()
will give you an error as you are now attempting to call an object that is not of the function type (functions injavascript
are objects to and exist as properties of their parent object in the same way as other objects).

Leave a Reply

Your email address will not be published. Required fields are marked *