如何隐藏键盘上的PhoneGap的Andr​​oid [英] How to hide keyboard on phonegap android

查看:107
本文介绍了如何隐藏键盘上的PhoneGap的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用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.

这篇关于如何隐藏键盘上的PhoneGap的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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