質問

I have noticed that if the user do not write correct English in a form, words get underlined in red. The problem comes when people writes correct French or any other language that is not English, it gets underlined too. How to control this? I mean, how to control the input language or at least that never underline.

For instance in this form: http://jsfiddle.net/wxrJP/
if you write maison a red line appears.

HTML:

<form>
    <input type="text" name="name">
    <textarea id="normal" name="text"></textarea>
</form>
役に立ちましたか?

解決

That has noting to do with Your Spellcheck, that's about the browser of the user. If the Browser has a Greek Spellcheck, well than everything will be underlined.

You don't have to do anything about this.

他のヒント

Use spellcheck="false" on your textarea to turn off the spell check.

Demo

Demo 2 (Compare, just focus both the fields one by one, and you will see 1st one won't underline where the next one will)


As you commented(Sorry I missed that out in the question that you wanted to give preference to lang specific spell check first),so I won't agree with the answer below and the comment, you can control spell check for specific language using lang attribute.

Demo (Focus the fields one by one and see the difference)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top