如何隐藏键盘上的PhoneGap的Andr​​oid键盘、PhoneGap、oid、Andr

2023-09-05 02:25:35 作者:人生满是遗憾

我用1.0的PhoneGap为Android。我有几个字段的申请表,其中之一就是把周年。我把一个datepicker那场,然而,当你点击的领域,出现的键盘。我怎么可以禁用键盘?

code如下:

 <标签>日期:< /标签> <输入ID =日期选择器类型textNAME =日期/>
 

解决方案

您可以因为只有然后读取一个onclick事件来显示日期选择器创建一个函数标记输入字段。

I am using 1.0 PhoneGap for android. I have an application form with several fields, one of them is to put the anniversary. I put a datepicker that field, yet when you click on the field, the keyboard appears. how can I disable the keyboard?

Code as below :

<label> Date: </label> <input id="datepicker" type"text" name="date"/>

解决方案

You can mark the input field as read only and then create a function for an onclick event to display the datepicker.

 
精彩推荐