I\'m using jquery,jquery mobile and phonegap. I want to show the keyboard one this page with input type=\"text\".
i use this in cordova 6 for android mobile app and its works:
-install cordova plugin keyboard: cordova plugin add cordova-plugin-keyboard
-then u can use Keyboard.show() to show keyboard and keyboard.hide() to hide it
u can do this to show keyboard:
$("#your_text_input").click(function () {
$(this).focus();
Keyboard.show();
});
$('#your_text_input').keydown(function(e) {
if (e.which == 13) { //Enter keycode
//your action
...
// Now clear input and set focus back to input
Keyboard.hide();
$(this).val('').trigger("keyup").focus();
}
});