Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 815
Gad D Lord Avatar asked Feb 16 '10 10:02

Gad D Lord


People also ask

How do I turn off spell check in HTML?

Output: Disabling Spell Check in a HTML Form: To disable spellcheck in a HTML form the spellcheck attribute is set to “false”.

How do I remove spell check from input?

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

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.


1 Answers

Use the spellcheck attribute:

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

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

like image 190
rahul Avatar answered Sep 28 '22 22:09

rahul