![](/img/trans.png)
[英]How to prevent focus/autofocus on first form input with bootstrap/jquery
[英]How to prevent autofocus on first input item when I click a link on popup in jQuery Mobile
我在jQuery Mobile彈出窗口中有一個textarea和一個鏈接。 當我單擊鏈接時,textarea自動獲得焦點,並且顯示鍵盤。 (在ios上)我想通過單擊鏈接重定向到另一個頁面,但是在重定向之前,鍵盤顯示出來是不必要的,因為我不想更改任何文本。
我檢查了jQuery Mobile 1.4.5演示頁,但存在相同的問題: http : //demos.jquerymobile.com/1.4.5/popup/
但是似乎1.3.1沒有這樣的問題。
請幫我!!!
嘗試在第一個輸入元素之前添加此元素<button style="position:fixed; top:10px; left:10px; opacity:0"></button>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.