How to disable spell checking from Input Box and Textarea in HTML forms
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Set the
spellcheck
attribute tofalse
Usually, when you enter the grammatically incorrect words inside
<input>
or<textarea>
fileds in an HTML form you will see the red underline below the incorrect words.This is the default behavior of Chrome and Firefox. However if you are using the input fields or text areas for editing the code or other non-prose data then the spell checker would not appropriate. In such situations you can disable this spell checking in HTML forms by setting the
spellcheck
attribute tofalse
, likespellcheck="false"
. Let's check out an example:Tip: To disable the spell checking in the entire form at once — just set the
spellcheck="false"
in the<form>
tag, like this<form spellcheck="false">
.