文本区域启用自动更正

发布于 2024-12-05 23:09:39 字数 363 浏览 6 评论 0原文

我在使用 PhoneGap 和 jQuery Mobile 制作的 iPhone 应用程序上遇到自动更正的小问题。我有几个字段,但似乎无论我做什么,它们都不会自动更正自动大写。

我尝试过的方法:

textarea 元素上的 auto Correct='on' (我的理解是默认行为无论如何都是打开的)

包装此 textarea 的表单标签上的 auto Correct='on' 。

还尝试了一些自动完成和自动大写的东西,

我在一些设备上检查过,所有这些在其他 UIwebview 情况下以及模拟器上都正确。

是否可能是因为我动态添加这些表单?或者可能是因为 jQuery mobile 和忽略自动更正建议的错误?

I'm having a small problem with autocorrect on an iPhone app I'm making using phonegap and jQuery mobile. I have a few fields but it seems no matter what I do they wont autocorrect of autocapitalize.

what I have tried:

autocorrect='on' on textarea element (my understanding is that the default behaviour is on anyway)

autocorrect='on' on the form tags that wraps this textarea.

also tried some stuff with autocomplete and autocapitalize

I have checked on a few devices, all that correct properly in other UIwebview situations, and also on the emulator.

is it possibly because I am adding these form dynamically? or possibly because of jQuery mobile and a bug with dismissing autocorrect suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风尘浪孓 2024-12-12 23:09:39

如果您检查 JQuery Mobile js 文件,您会发现 JQuery Mobile 自动在所有输入字段上设置 auto Correct = "off"。

这是“问题 785 的临时解决方法”,因为用户无法关闭自动更正弹出窗口。

要使用自动更正,您必须操作 JQuery Mobile js 文件。

If you check the JQuery Mobile js-file you will find that JQuery Mobile automatically sets autocorrect = "off" on all input fields.

It is a "Temporary workaround for issue 785" since the Autocorrect popup can't be dismissed by the user.

To use Autocorrect you will have to manipulate the JQuery Mobile js-file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文