:::: MENU ::::

JavaScript Error Fix – TypeError: document.getElementById(…).submit is not a function

Sometimes you try to validate HTML <form> using form validation javascript via some third party plugin or even through your custom validation function but it doesn’t work and get following error.

Error  Debugging

  • Double check if you have any element name =”submit’.
  • Check If multiple callback attached to <form> submit() event via chrome console. 

    See screenshot:-

    form-submit-event-view-in-chrome

  • Make sure if there isn’t any sub-form added by mistake.

  • Check case sensitivity of getElementbyId.

     
  • If your form is still not posting the form, check if any function is returning false on submit event?

So, what do you think ?

  •