Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one disable spellcheck on input type=text?

I'd like to disable the spellcheck on my textfields <input type="text"> so as not to have any ugly red squigglies.

I understand others have asked this same question, but they always make the answer of putting spellcheck=false as accepted. That is not correct. That only works on a textarea, not input.

I'd like it to work in chrome at least.

like image 807
tybro0103 Avatar asked May 13 '11 02:05

tybro0103


People also ask

How do I turn off spell check for typing?

Here's how. Click File > Options > Proofing, clear the Check spelling as you type box, and click OK. To turn spell check back on, repeat the process and select the Check spelling as you type box.

How do I turn off spell check in CSS?

It's not CSS but HTML: spellcheck="false" in your HTML element should do the trick.

How do I turn off spell check in HTML?

To disable spellcheck in an HTML form the spellcheck attribute is set to “false”.


1 Answers

From http://blog.whatwg.org/the-road-to-html-5-spellchecking#compatibility:

Google Chrome offers as-you-type spellcheck on <textarea> elements but not <input type=text> elements. It ignores the spellcheck attribute entirely. It does not offer the end user the option to change the default behavior or manually check individual fields.

So, it ends here.


Update: since Chrome 13 (released August 2011, 3 months after this answer), it's also supported on <input> elements.

like image 176
BalusC Avatar answered Oct 15 '22 19:10

BalusC