本文介绍了禁用文本框建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家都已经体会到,当你使用文本框一次又一次地写入内容并提交值时,文本框开始给你提示 onfocus 事件基于以前的书面价值。我们可以禁用文本框的这个属性,它不应该建议以前的值吗?

解决方案

autocomplete =off属性为您的控件
eg

 < input type =textautocomplete =off/> 


Hi all you all have experienced that when you use atextbox again and again by writing something in it and submitting the values the textbox starts to give you suggestion on the onfocus event based on previous written values. Can we disable this attribute of the textbox that it shouldn't suggest previous values?

解决方案

autocomplete="off" add this as attribute to your controle.g.

<input type="text" autocomplete="off" />

这篇关于禁用文本框建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 04:45