Để hiển thị nó, hãy sử dụng phần sau -
<input placeholder = "Date" class = "textbox-n" type = "text" onfocus = "(this.type = 'date')" id = "date">
Bạn cũng có thể sử dụng CSS -
input[type="date"]::before{
color: #ffffff;
content: attr(placeholder) ": ";
}
input[type="date"]:focus::before {
content: "" !important;
}