Make text input fields remember previously entered data

前端 未结 7 1776
夕颜
夕颜 2021-02-18 23:30

My text inputs seem not to remember values that have been typed before. For example, many websites that I don\'t even have an account on, but have, for example entered my email

相关标签:
7条回答
  • 2021-02-19 00:22

    I had the same problem. For me, it was when developing in ASP.NET MVC. Anyway, the solution I had to make was a combination of things:

    1. Having the name attribute defined in my input tags

    2. Having autocomplete="on" in my input tags

    3. Changing the button tag to be a type="submit" tag

    4. Enclosing all my input controls in a <form> tag

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