24

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

0

1 Answer 1

49

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

<input name="yourname" type="text" autocomplete="off"/>
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks bro! I knew that was it but for some reason I couldn't get it to work but I got it now.
What! 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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.