Home  >  Article  >  Web Front-end  >  js failure problem and reasons caused by name='submit' of submit button_javascript skills

js failure problem and reasons caused by name='submit' of submit button_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:13:071003browse

The code is as follows:

Copy code The code is as follows:

http://www.w3.org/1999/xhtml"> http-equiv="Content-Type" content="text/html; charset=utf-8">
Insert title here





每页显示
条 共6条记录  第

页 / 共1页 第一页
最后一页  跳转页码至:






name属性删除之后正常运行~~这是什么原因呢,经过一番研究和咨询,一位大神给出了答案

form中元素通过name获取。如果name=submit,那么form.submit得到的应该是 那个input 。所以form.submit()会报 is not a finction 的错误

小伙伴们了解了没,希望本文能给大家一些帮助

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Analysis of drag and drop sorting example in jqueryUI_jqueryNext article:Analysis of drag and drop sorting example in jqueryUI_jquery

Related articles

See more