Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide keyboard on phonegap android

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"/>
like image 659
faoc Avatar asked Dec 10 '22 06:12

faoc


1 Answers

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

like image 175
blong824 Avatar answered Jan 03 '23 20:01

blong824