Not showing placeholder for input type="date" field

Mumthezir VP picture Mumthezir VP · Dec 2, 2013 · Viewed 258.7k times · Source

I am doing a phonegap app. When I am trying type="date" input field as shown below, it shows date picker in iPhone as I expected but it doesn't show the placeholder I have given. I found the same issue here in SO, but no solution anywhere.

 <input placeholder="Date" class="textbox-n" type="date" id="date">

Answer

Mumthezir VP picture Mumthezir VP · Dec 3, 2013

It may not be appropriate... but it helped me.

<input placeholder="Date" class="textbox-n" type="text" onfocus="(this.type='date')" id="date">