Computer Science, asked by gabriella51051, 1 year ago

Not showing a placeholder for input type=“date” field with HTML5. How to solve it?

Answers

Answered by lastbenchstudent
0

This is by design actually, you can't simply use the placeholder if type is date ,

to achieve this either apply some css or do things in different way.

one of the example is this

<input placeholder="Date here"  type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="date">

Similar questions