“Submit is not a function” error in Firefox in dynamically CREATED form without other submit inputs

后端 未结 1 1499
逝去的感伤
逝去的感伤 2021-01-24 03:40

In Firefox 5\'s error console (but not in IE 9) I get the error \"myForm.submit is not a function\" when I call the following javascript function (in an external script file):

相关标签:
1条回答
  • 2021-01-24 04:37

    Its caused in the type of element you've created. "form_redir" is no valid html tag so it created an element but it has only the default dom methods. Change it to "form" and it will work.

    0 讨论(0)
提交回复
热议问题