Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable input field history using html [duplicate]

Tags:

html

css

I want to disable the previously searches from my text input field. You know, the little box that pops up under the search bar with suggestions while you're typing ? Here, I'll attach a screenshot:

enter image description here

like image 687
Richard Rodgers Avatar asked Feb 11 '17 20:02

Richard Rodgers


1 Answers

Simply set autocomplete="off" on your input element.

<input name="yourname" type="text" autocomplete="off"/>
like image 82
Dylan Stark Avatar answered Oct 08 '22 03:10

Dylan Stark