So basically what I want to do is make it so the default placeholder of an input type of date is hidden or transparent when the page is being printed. The trick is that it should still display a valid date when a user inputs one.
There are several things I have already tried, however they are either outdated and do not work with current versions of Chrome or also hide a valid date as well.
I've tried this one (Robin's answer): Remove default text/placeholder present in html5 input element of type=date
But it hides valid dates when using it inside:
@media print {}
I would like for this placeholder to be missing when printing so that if I wanted to print an empty form, the mm/dd/yyyy won't be in the way. For now I have to temporarily make it transparent if I need to print one off.
Is this possible at all in? Also wondering about changing the placeholder's color to be gray like text input placeholders, but change to black upon entering a valid date.
Thanks.