How can I disable the spell checker on text inputs on the iPhone

HtmlMobile SafariSpell Checking

Html Problem Overview


Sometimes the spell checker is unnecessary, captchas, usernames, emails, etc. Is there a way disable it on some text inputs/text areas?

Html Solutions


Solution 1 - Html

As noted by my buddy Jonathan Stark, you should be able to use attributes like autocorrect and autocomplete to achieve the effect you're looking for:

<input type="text" placeholder="My Field" name="myfield"
    autocapitalize="none" autocorrect="off" autocomplete="off" />

Just tested in OS4 and it's working.

UPDATE: As of iOS5 on and off values in autocapitalize have been deprecated. Use none to completely disable automatic capitalization.

Solution 2 - Html

Actually there is literally a spell check attribute in HTML5:

<textarea spellcheck="false">

Re: http://blog.whatwg.org/the-road-to-html-5-spellchecking

Browser support is, of course, limited.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBen ShelockView Question on Stackoverflow
Solution 1 - HtmlDavid KanedaView Answer on Stackoverflow
Solution 2 - HtmlChris CoyierView Answer on Stackoverflow