【问题标题】:Is it possible to invoke the Keyboard on an input or textarea using Javascript in Mobile Safari?是否可以在 Mobile Safari 中使用 Javascript 在输入或文本区域上调用键盘?
【发布时间】:2011-11-21 12:57:38
【问题描述】:

我希望如此

$("#element").focus();

$("#element").click();

会工作,但没有运气。

有什么想法吗?

【问题讨论】:

标签: javascript jquery jquery-mobile mobile-safari


【解决方案1】:

如果$("#element") 是输入或文本区域字段,那么是的,这将导致键盘出现。但仅在那些情况下(不确定contenteditable divs...)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-04-01
    • 2016-09-01
    • 2011-09-04
    • 1970-01-01
    • 2011-09-04
    • 2013-10-21
    • 1970-01-01
    相关资源
    最近更新 更多