How set value for input date

HTML 5 comes with superb type of input called date. Even if some browsers doesn’t nowadays support this type, it can be used, becouse if browser doesn’t support it, it is evalueted as ordinary <input type=“text“>. So how setup default value?

Easily. All you have to do is to keep default date format YYYY-MM-DD.

<input type=“date“ value=“2016-05-20″>

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *