首页 > Web开发 > 详细

jquery submit() 提交失败

时间:2016-12-08 02:38:09      阅读:230      评论:0      收藏:0      [点我收藏+]

今天写一个表单提交

技术分享

 

技术分享

 

技术分享

居然走到$(‘#wechat_form‘).submit() 这没有怎么都没有提交这个表单

google 了一下

Additional Notes:
Forms and their child elements should not use input names or ids that conflict with properties of a form, such as submit, length, or method. Name conflicts can cause confusing failures. For a complete list of rules and to check your markup for these problems, see DOMLint.

 

原因是因为我submit的按钮的id 也是submit 和提交submit()方法同名。

解决方案:

  改掉按钮的id 名,就可以了。

 

jquery submit() 提交失败

原文:http://www.cnblogs.com/jackylee92/p/6143203.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!