TypeError: '[object HTMLInputElement]' is not a function (evaluating 'elem[ type ]()') in jQuery form.submit()

后端 未结 3 770
执笔经年
执笔经年 2021-02-20 00:17

Has never run into this issue? I\'m getting this error in the latest release of jQuery. I tried with version 1.6.2 and there is no issue.

TypeError: \'[object HT         


        
3条回答
  •  时光说笑
    2021-02-20 00:42

    I have found that this error will occur when using the onclick attribute to call a JavaScript function with the same name as either the id or name attributes on an input element:

     
    
     
    
     
    

    This behavior occurs irrespective of input type.

提交回复
热议问题