0

so I have this piece of HTML

<input id="dob" type="date" tabindex="7" placeholder="DD/MM/YYYY" name="dob">

On a mobile device, the placeholder is not showing. It just shows a a dropdown list and tapping on the input gives me the HTML5 date picker.

I want to simulate the placeholder parameter on mobile devices.

Any ideas how this can be done? thanks

mrjayviper
  • 2,258
  • 11
  • 46
  • 82
  • 1
    Possible duplicate of [placeholder for input type date html5](http://stackoverflow.com/questions/30961704/placeholder-for-input-type-date-html5) – Srujan Reddy Aug 16 '16 at 02:43
  • @SrujanReddy not sure how it can be a duplicate since the other user type=text. I'm using type=date which gives a completely different behavior on mobile devices. but thanks for the link! – mrjayviper Aug 16 '16 at 02:46
  • 1
    ya, Thanks for pointing this out. I have suggested an edit on that question, That question is actually on date type. placeholder wont work on date types as of now. Better go with available datepicker's. – Srujan Reddy Aug 16 '16 at 02:52

0 Answers0