How can user make input type date empty?

2019-06-20 06:54发布

问题:

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

回答1:

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



回答2:

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

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


回答3:

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



标签: html5 date input