views:

297

answers:

2

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?

+9  A: 
<textarea spellcheck="false"></textarea>

in HTML 5

See The Road to HTML 5: spellchecking

rahul
this worked for me, but the linked document is a little out date: It says Chrome "ignores the spellcheck attribute entirely" when in fact it now respects it.
olooney
+1  A: 

add the attribute using JQuery $('.textarea_className').attr('spellcheck',false);

I was able to do this with JQUery so that I can return 0 errors for my XHTML validation

wileez