JavaScript输入类型date |不适用于Android设备4.2 [英] JavaScript Input Type date | does not work on Android Device 4.2

查看:119
本文介绍了JavaScript输入类型date |不适用于Android设备4.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的输入类型如下:

<input type="text" placeholder="Students DOB"  class="inputText" name="txtPassword" id="txtPassword" onfocus="(this.type='date')"  >

在Android设备的输出中,日历无法在Android设备4.1.2(Jellybean ),但日历适用于Android设备4.2(kitkat)。

In the output on the Android devices, the Calendar does not work on Android device 4.1.2 (Jellybean), but the Calendar works on Android device 4.2 (kitkat)..

推荐答案

我的建议是使用下拉菜单日期而不是默认的日期选择器,因为它是一个混合应用程序,您可能会遇到版本和平台的问题,甚至Windows中的默认日期选择器将不能正常工作

My suggestion would be to use drop downs for the date instead of going for the default date picker as it is a hybrid app you may face issues with the versions and platforms , and even the default date picker in windows won't work fine all the time

这篇关于JavaScript输入类型date |不适用于Android设备4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆