It\'s impossible to use placeholder on date fields but I really need it.
I want two date inputs with texts \"From\" and \"To\" on each one as placeholders.
Using a jQuery (sure you can achieve this with Vanilla. This make sure the date format still the same.
$(function() { $('.sdate').on('focus', function() { $(this).attr('type', 'date'); }); $('.sdate').on('blur', function() { if(!$(this).val()) { // important $(this).attr('type', 'text'); } }); });