tags:

views:

231

answers:

2

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?

A: 

html attribute:

autocomplete="off"
Naeem Sarfraz
I think it's autocomplete="off"
Raveren
thanks, I thought it was in that ball park
Naeem Sarfraz
+3  A: 

The attribute:

<...autocomplete="off".../>

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

David Thomas
that's it... Strange, CODA didn't have that as a hint
AnApprentice
It’s a non-standard attribute until HTML5 (see http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-autocomplete-attribute), so it will make your code invalid under other HTML doctypes. Sounds like it’s worth it in this context, although you could switch to the HTML5 doctype (`<!DOCTYPE html>`) to get valid code without having to change anything else.
Paul D. Waite