问题
Is there a way to disable spelling assistance in HTML input fields in BlackBerry 6/Iphone/android?
I tried setting the
autocomplete="off" autocapitalize="false" autocorrect="false" spellcheck="false"
", but doing that unfortunately doesn't seem to disable the autocomplete .
I'm trying to do this because I want to use a custom autocompleter, but the BlackBerry autocompleter keeps getting in the way.
Thanks
Kevin
Any Ideas would be great
回答1:
Don't use "false", use "off":
<input type="text" id="test" name="keyword" autocorrect="off" autocapitalize="off" autocomplete="off" />
回答2:
I was just doing this and testing on an iPhone and all of them seem to use "off" except spellcheck needs to be "false."
回答3:
For blackberry, instead of using input type="text", you can use input type="email". Auto correct is by default off for email in blackberry. This is specially very helpful when application is being build using sencha.
来源:https://stackoverflow.com/questions/5380972/disable-spelling-assistance-in-html-for-mobile-devices