Home > Web Front-end > H5 Tutorial > 是不是表单中所有带 name 属性的都会被 form.submit() 提交?

是不是表单中所有带 name 属性的都会被 form.submit() 提交?

WBOY
Release: 2016-06-07 08:43:38
Original
1735 people have browsed it

回复内容:

不是,例如被禁用的控件、非最终触发表单提交的按钮等,都不参与提交过程。

HTML4 里的说法叫 Successful controls:Forms in HTML documents
HTML5 的描述变了,见 4.10 Forms — HTML5 只有表单元素才能被提交,前提示没有disable,参考
HTML之表单元素 除了disable的都会被提交
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template