55

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

ergosys
  • 47,835
  • 5
  • 49
  • 70
Ben Shelock
  • 20,154
  • 26
  • 92
  • 125

2 Answers2

78

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.

gffbss
  • 1,621
  • 1
  • 17
  • 19
David Kaneda
  • 5,320
  • 1
  • 21
  • 14
  • 2
    Most of the time, I don't turn off autocomplete so that the user can still use the "save password" feature of their browser. – fedmich Jun 26 '14 at 13:34
52

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.

Chris Coyier
  • 1,238
  • 2
  • 11
  • 13