Why does the reset button on html forms not reset hidden fields?

前端 未结 4 1057
醉梦人生
醉梦人生 2021-01-04 06:07

I discovered something surprising:





        
4条回答
  •  耶瑟儿~
    2021-01-04 06:44

    The user can't see or modify the hidden field, therefore it wouldn't make any sense for them to be able to clear it by pressing a button.

提交回复
热议问题