Property 'submit' of object #<HTMLFormElement> is not a function
来源:互联网 发布:淘宝定制手机壳在哪 编辑:程序博客网 时间:2024/04/30 22:22
今天使用jquery的时候使用脚本提交表单$("#submit").submit();
然后就出现了:Property 'submit' of object #<HTMLFormElement> is not a function
网上查了下原因:说是form里面有个name="submit"的按钮导致submit()方法和button的name混淆
然而我的却不是name,二是id为 "submit"
再次补充下,无论是name还是id为"submit"都是不行的,只要把submit改掉就OK 了,我改成了"Submit",也是OK 的!
- Property 'submit' of object #<HTMLFormElement> is not a function
- Property 'submit' of object #<HTMLFormElement> is not a function
- form.submit()提交时报错object is not a function
- Javascript Error: submit is not a function
- typeError: form.submit is not a function
- document.form.submit() is not a function
- document.form.submit() is not a function
- object is not a function
- Uncaught TypeError: object is not a function
- 解决object is not a function
- Uncaught TypeError: object is not a function
- Javascript Error: form.submit is not a function
- TypeError:window.forms.loginForm.submit is not a function
- js提交表单错误:form.submit is not a function
- 表单js提交报错 submit is not a function
- form 通过js 调用 form名字 .submit(); 有时失效 ***.submit is not a function 需注意
- Vue.js搭建路由报错 router.map is not a function,Cannot read property ‘component’ of undefined
- mongoDB add user in v3.0 问题的解决(Property 'addUser' of object admin is not a func)
- BOS/控制台/客户端/工作空间环境及部署
- sqlite笔记
- sas导入外部数据文件
- HttpServletRequest(二)
- 删除数组中重复的元素
- Property 'submit' of object #<HTMLFormElement> is not a function
- 进程工作目录的继承
- object-c的异常处理机制
- 让虚拟机识别串口和USB转串口
- Google Chrome 导入IE和Firefox的收藏夹和浏览记录
- 无法删除当前已连接的用户处理办法
- 截取字符串的另一种做法
- poj 2485 修建公路
- Maven将web项目发布到tomcat中