<input autocomplete='on'> does not work with Chrome. Is it a bug?

后端 未结 2 1894
难免孤独
难免孤独 2021-01-11 17:07

I was struggling for a while on the html5 autocomplete feature of Chrome. I had a form like this

相关标签:
2条回答
  • Please provide ID to your input variable

    <form method='post' action='myaction'>
     <input name='myname' type='email' id="myname" autocomplete='on' />
     <input type='submit' value='Submit!' onclick='transform_data();'/>
    </form>
    

    Then it should work, without id it wont work

    0 讨论(0)
  • 2021-01-11 17:41

    Chrome will only save the autocomplete information on submit. There are some workarounds detailed here: Trigger autocomplete without submitting a form

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