我正在使用jquery,jquery mobile和phonegap.我想在这个页面上显示键盘输入类型="text".
<section id="page1" data-role="page">
<header data-role="header">
<h1>jQuery Mobile</h1>
</header>
<div data-role="content" class="content">
<input type="text" placeholder="?????" />
</div>
</section>
Run Code Online (Sandbox Code Playgroud)
我的剧本是
$(document).ready(function(){
$('input').select();
$('input').focus();
});
Run Code Online (Sandbox Code Playgroud)
文本字段是聚焦的,但是键盘没有显示,并且当单击输入type ="text"时它被激活.如何强制在javascript中启动键盘或使用phonegap插件?