My textarea contains C# code, so i get red underlines all over the place, is there any way to disable auto correction on a TEXTAREA in html code?
Thank
I believe you may be looking for <textarea spellcheck="false"></textarea>
Source: https://developer.mozilla.org/en/controlling_spell_checking_in_html_forms
There are two more attributes other than spellcheck="false"
for iOS (probably Android too) that you might need to add to your text inputs to avoid OS interferer with text content:
autocorrect="off"
for avoiding to complete or suggest a word autocapitalize="off"
for avoiding OS transforming book
to Book
spellcheck="false"
for avoiding OS from highlighting spell errors 尝试将以下代码添加到textarea:
spellcheck="false"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.