Do hidden form elements get submitted?

后端 未结 2 1288
太阳男子
太阳男子 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:40

    In order to prevent submitting, you have to disable the elements. Hiding doesn't do the trick (I had the same issue a while ago)

提交回复
热议问题