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.
You can use CSS's before pseudo.
.dateclass { width: 100%; } .dateclass.placeholderclass::before { width: 100%; content: attr(placeholder); } .dateclass.placeholderclass:hover::before { width: 0%; content: ""; }
FIDDLE