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:
Asked
Active
Viewed 2.1k times
1 Answers
45
Simply set autocomplete="off"
on your input element.
<input name="yourname" type="text" autocomplete="off"/>

Dylan Stark
- 2,325
- 17
- 24
-
Thanks bro! I knew that was it but for some reason I couldn't get it to work but I got it now. – Richard Rodgers Feb 11 '17 at 23:51
-
1What! I was cracking my head trying to figure out the JavaScript code to do the job and here you are with a simple html solution. Thank you so much, it worked – Motsi Aug 14 '22 at 06:54