placeholder does not work for input type date directly.
<input required="" type="text" class="form-control" placeholder="Date"/>
instead, it shows mm/dd/yyy
how to show Date?
use onfocus="(this.type='date')", example:
onfocus="(this.type='date')"
<input required="" type="text" class="form-control" placeholder="Date" onfocus="(this.type='date')"/>
1.4m articles
1.4m replys
5 comments
57.0k users