How can user make input type date empty?

2019-06-20 07:31发布

I wish to use the new input attribute from HTML5 DATE, only one problem, in the logic of the project, the user must be have the choice to delete the value, but i don't see, how to set empty value on this inputs

标签: html5 date input
3条回答
三岁会撩人
2楼-- · 2019-06-20 07:40

Assuming you want to make the value shown to dd/mm/yyyy, then click on Clear button.

enter image description here

查看更多
狗以群分
3楼-- · 2019-06-20 07:42

In HTML5 on Chrome the date picker popup has a "clear" button at the bottom (next to "today")

<input type="date" value="">
查看更多
贪生不怕死
4楼-- · 2019-06-20 08:00

<input type="date" name="NameItAnythingYouWant" value="">

查看更多
登录 后发表回答