我正在使用jquery,jquery mobile和phonegap。 我想在一个使用input type="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>
我的脚本是
$(document).ready(function(){
$('input').select();
$('input').focus();
});
文本框已聚焦但键盘未显示,在单击input type="text"时启动。如何在JavaScript或使用PhoneGap插件中强制启动键盘?