Force a Browser to Enable Spell Checking on an Input or Textarea

Now that many modern browsers include the ability to check spelling on forms, it is nice to be able to turn on spell checking for certain fields when coding the form. This is a pretty basic html attribute, but it seems surprising undocumented on the web.

Here is an example of forcing a input field to automatically enable spell checking.

Alternatively you could turn off spell checking with the following code.

I don't think that this attribute is actually a part of any html/xhtml standard (yet), however it seems to work in most modern browsers that support spell checking.

Leave a Reply

{
}