element cannot be activated. When I click on the fields on the emulator, i...">

Using HTML5 date input element with android

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

When I click on the fields on the emulator, it does not show me the entry date, but the Android keyboard.

+4
source share
3 answers

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

It tells you which html5 types and attributes work in each browser. It seems that datepicker does not work for most androids and therefore it will appear as a simple text input.

+8
source

You can use the Trigger.io user module to use Android โ€™s native date and time set with plain HTML5 input. However, this requires the use of a common structure (so it will not work like a regular mobile web page).

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

0
source

Source: https://habr.com/ru/post/1442958/


All Articles