Reputation: 887
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
Upvotes: 11
Views: 47013
Reputation: 35950
Assuming you want to make the value shown to dd/mm/yyyy
, then click on Clear
button.
Upvotes: 5
Reputation: 8226
In HTML5 on Chrome the date picker popup has a "clear" button at the bottom (next to "today")
<input type="date" value="">
Upvotes: 5