4

The element <input type="date" /> cannot be activated.

When I click on the fields on the emulator it doesn't show me the entrance date but the android keyboard.

Amir Nathoo
  • 1,866
  • 12
  • 12
Med Amine
  • 119
  • 2
  • 3
  • 7
  • I found it: http://stackoverflow.com/questions/16865378/how-to-make-the-html5-input-type-date-trigger-the-native-datepicker-on-android/16866240#16866240 – justclaire May 31 '13 at 21:30

3 Answers3

8

Take a look at this: http://www.quirksmode.org/html5/inputs_mobile.html

It tells you which html5 input types and attributes work on each browser. It looks like the datepicker isn't working for most Androids, and thus it would show as a simple text input.

Sergi Juanola
  • 6,531
  • 8
  • 56
  • 93
0

You could use Trigger.io's UI module to use the native Android date / time picker with a regular HTML5 input. Doing that does require using the overall framework though (so won't work as a regular mobile web page).

You can see before and after screenshots in this blog post: http://trigger.io/cross-platform-application-development-blog/2012/11/16/new-feature-roundup-native-date-time-picker-analytics-with-flurry-android-events/

Amir Nathoo
  • 1,866
  • 12
  • 12
0

Have a look here: How to make the HTML5 input type 'date' trigger the native datepicker on Android?

mobiscroll.com offers a nice polyfill.

Community
  • 1
  • 1
escapedcat
  • 726
  • 10
  • 31