gpt4 book ai didi

javascript - 在什么条件下提交输入?

转载 作者:行者123 更新时间:2023-11-28 12:52:08 25 4
gpt4 key购买 nike

提交表单时,会提交哪些输入?

举个例子:

  1. disabled inputs are not submitted ...
  2. inputs wihtout a name attribute are not submitted ...

我正在寻找更全面/官方的文件来解释提交的内容?

最佳答案

有一系列条件。

控件的表单所有者必须是正在提交的表单,并且以下情况均不成立:

  • The field element has a datalist element ancestor.
  • The field element is disabled.
  • The field element is a button but it is not submitter.
  • The field element is an input element whose type attribute is in the Checkbox state and whose checkedness is false.
  • The field element is an input element whose type attribute is in the Radio Button state and whose checkedness is false.
  • The field element is an object element that is not using a plugin.

并且必须建立一个名称。

详细信息位于 HTML5 规范 4.10.21.4 Constructing the entry list

关于javascript - 在什么条件下提交输入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60348744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com