How to disable autocorrect in HTML input on Android?

后端 未结 3 849
灰色年华
灰色年华 2021-02-12 17:50

I can not disable autocorrect of text input in web browser on Android.

I tried this:



        
3条回答
  •  没有蜡笔的小新
    2021-02-12 18:11

    Please try this: http://jsfiddle.net/c9HQT/

    Basically you are using Javascript to set the value after every keystroke, hopefully interrupting the auto-complete.

    $('input').on 'keypress', ->
      console.log $(this).val()
      $(this).val $(this).val()
    

提交回复
热议问题