How can user make input type date empty?
29,808
Solution 1
Assuming you want to make the value shown to dd/mm/yyyy
, then click on Clear
button.
Solution 2
In HTML5 on Chrome the date picker popup has a "clear" button at the bottom (next to "today")
<input type="date" value="">
Author by
BASILIO
I am using only native functions of languages. Using of frameworks is restricted on my workplace.
Updated on July 13, 2022Comments
-
BASILIO almost 2 years
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
-
BASILIO over 11 yearsThank you, in my Opera on Linux i have it not, but good that the first one Browser is on the right way
-
Eugene almost 7 yearsVery old answer. Much has changed.