简体   繁体   中英

jQuery mobile framework on page load show softkeyboard

I have a index.html page..

The contents in it are 2 textboxes username and password .

What I need is on page load itself get the focus on to the first textbox and show softkeyboard...

I would like to get it in jquery mobile,also would like to know how it is done for kendo as well?

It cannot be done using purely JavaScript unless there is phone gap, refer this below link

jQuery Mobile Show Keyboard on Input Focus

对于自动对焦功能,您可以通过为输入提供自动对焦属性来使用HTML5的本机功能

<input name="username" autofocus>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM