如何清除文本输入的历史记录 [英] How to clear history of text input
本文介绍了如何清除文本输入的历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的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...
这篇关于如何清除文本输入的历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文