Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML/CSS - Input [Text] How to disable the browser from offering suggestings in the Dropdown?

Tags:

html

css

input

I'm building an autosuggest search, like apple's spotlight... and want to disable the browser from offering text suggestions under the input box. I can't remember if that's an html or css setting and can't find it.

Anyone remember?

like image 539
AnApprentice Avatar asked Mar 14 '10 17:03

AnApprentice


People also ask

How do I turn off autofill input?

This can be done in a <form> for a complete form or for specific <input> elements: Add autocomplete="off" onto the <form> element to disable autocomplete for the entire form. Add autocomplete="off" for a specific <input> element of the form.

How do I disable text input in CSS?

you can disable via css: pointer-events: none; Doesn't work everywhere though. Text input can still be tabbed into.

How do you turn off controls in HTML?

Definition and Usage A disabled input element is unusable and un-clickable. The disabled attribute can be set to keep a user from using the <input> element until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript could remove the disabled value, and make the <input> element usable.

What is autocomplete off in HTML?

The autocomplete attribute specifies whether a form should have autocomplete on or off. When autocomplete is on, the browser automatically complete values based on values that the user has entered before. Tip: It is possible to have autocomplete "on" for the form, and "off" for specific input fields, or vice versa.


1 Answers

The attribute:

<form autocomplete="off"> 

is, I think, what you're looking for.

like image 81
David Thomas Avatar answered Sep 21 '22 22:09

David Thomas