文本区域启用自动更正
我在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您检查 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.