Answers for "add text placeholder to datepicker html"

6

add placeholder in input type date

<input type="text" placeholder="Date of birth" onfocus="(this.type='date')">
Posted by: Guest on October-09-2020
2

add custom placeholder in input type date

<input type="text" placeholder="Birth Date" onfocus="(this.type='date')" onblur="if(this.value==''){this.type='text'}">
Posted by: Guest on November-20-2020

Code answers related to "add text placeholder to datepicker html"

Browse Popular Code Answers by Language