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.

enter image description here

Solution 2

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

<input type="date" value="">
Share:
29,808
BASILIO
Author by

BASILIO

I am using only native functions of languages. Using of frameworks is restricted on my workplace.

Updated on July 13, 2022

Comments

  • BASILIO
    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
    BASILIO over 11 years
    Thank you, in my Opera on Linux i have it not, but good that the first one Browser is on the right way
  • Eugene
    Eugene almost 7 years
    Very old answer. Much has changed.