TypeError: e[h] is not a function

后端 未结 6 1026
说谎
说谎 2020-12-28 18:20

I\'ve been using jquery 1.6 with no problem. Today I switched to jquery 1.8 and suddenly I am getting this error when trying to submit a form:

TypeError: e[h         


        
6条回答
  •  青春惊慌失措
    2020-12-28 18:35

    Remove the line below.

    
    

    Update:

    Or if you have to use the submit input, then you need to change the id submit to something else. The reason is that if you have an input element with id of submit, it will set a submit property to the form with the HTMLInputElement. So you could not call the .submit method on the HTMLFormElement.

提交回复
热议问题