Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
662 views
in Technique[技术] by (71.8m points)

html - Disable Textbox suggestions

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...