Inline Disabling of Firefox Spellcheck?

后端 未结 4 1443
一个人的身影
一个人的身影 2021-01-01 09:45

I researched this a while ago and can\'t remember how to do it. I want to be able to prevent Firefox from running it\'s spell-checking functionality on certain input fields

相关标签:
4条回答
  • 2021-01-01 10:20

    Talk about having a big "duh" moment! I found the answer after some trial & error:

    <textarea spellcheck="false"></textarea>
    
    0 讨论(0)
  • 2021-01-01 10:26

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

    This will allow you to return a valid XHTML mark up. =)

    0 讨论(0)
  • 2021-01-01 10:30

    The "spellcheck" attribute is currently an extra feature available only in Firefox, but it is being considered for inclusion in HTML5.

    0 讨论(0)
  • 2021-01-01 10:33

    The downside of this is that the W3 strict validator gives - Attribute "spellcheck" is not a valid attribute. Bad news for those of us with OCD that love to see 0 errors in validating our sites.

    0 讨论(0)
提交回复
热议问题