Answers for "input date hint"

9

add placeholder in input type date

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

input type="date"

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input id="datePicker" type="date" />
 Run code snippet
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language