Do hidden form elements get submitted?

后端 未结 2 1289
太阳男子
太阳男子 2021-02-18 15:13

If jQuery\'s toggle() is used on a

containing form elements, will those form elements get submitted with the form, even though they are hid
2条回答
  •  长情又很酷
    2021-02-18 15:50

    Yes, they'll get submitted unless they are removed from the document or have the disabled attribute set on them.

    For more information, see the HTML5 Working Draft — Section 4.10.22.4 Constructing the form data set. The information there is more-or-less the same as previous HTML versions.

提交回复
热议问题