如何清除文本输入的历史记录
问题描述:
在我的html页面中,我有多个文本输入。每次我在其中输入值时,它会显示我之前输入的值。是由于浏览器属性还是html?如何禁用它?
In my html page I have multiple text inputs. Every time I enter values in them it shows me previously entered values. Is it due to browser property or html? how do I disable it?
答
总是更好的方法是给表单 autocomplete =off
Always the better appraoch is to give form autocomplete="off"
<form autocomplete="off">
<input type="text" id="text1">
<input type="text" id="text2">
</form>
然后只有较新版本的Eclipse支持HTML5标签,例如自动完成,否则会显示警告...
Then only newer versions of Eclipse support HTML5 tags such as autocomplete else it will show warning...