Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove text box drop down suggestions

Tags:

html

css

textbox

I have a text input where people type and send text. I don't want the text box to have a drop down box with suggestions based on previous inputs. How do i remove this textbox drop down box? (I know its gonna be a simple 1 line of code but I can't find it :P)

like image 933
moesef Avatar asked Feb 17 '12 05:02

moesef


People also ask

How do I get rid of text box suggestions?

Double-click the text field so the drop-down box containing the autofill suggestions appears. Hold your mouse over the option that you want to remove from autofill to highlight it. Don't click on it. Press the "delete" key on your keyboard.

How do I get rid of HTML suggestions?

Add autocomplete="off" onto <form> element; Add hidden <input> with autocomplete="false" as a first children element of the form.

Which of the following attribute is used to avoid showing suggestions in an input control?

The autocomplete attribute specifies whether or not an input field should have autocomplete enabled.

How do you show the suggestion list in the input field?

Approach: Create a div with the class as a container. Inside of this div, create another div with a class as a text-container that will contain the <input> tag & <datalist> tag. Declare the list attribute as programmingLanguages inside the <input> tag.


1 Answers

Try this attribute in your input tag:

autocomplete="off" 
like image 134
DragonWork Avatar answered Sep 23 '22 16:09

DragonWork