How to disable Chrome spell check on INPUT with HTML or jQuery code?

Gad D Lord picture Gad D Lord · Feb 16, 2010 · Viewed 9.6k times · Source

I have an input in an HTML page

<input id="SearchBox" type="text" value="" width="300px" 
       title="Search the card pool" autocomplete="off" maxlength="170">

I would like to switch this off with something like autospellcheck="off". Is there a way to achieve that?

Is there also a way to switch this off for Firefox?

Answer

rahul picture rahul · Feb 16, 2010

Use the spellcheck attribute:

<textarea spellcheck="false"></textarea>

See Spellcheck (MSDN) or Controlling spell checking in HTML forms (MDN).