GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

HTMLSelectElement: autocomplete property

HTML DOM

HTML DOM

The **`autocomplete`** property of the HTMLSelectElement interface indicates whether the value of the control can be automatically completed by the browser. It reflects the `<select>` element's [`autocomplete`](/docs/Web/HTML/Reference/Elements/select#autocomplete) attribute.

## Value

A string representing the value of the `autocomplete` attribute (`"on"`, `"off"`, or a [`<token-list>`](/docs/Web/HTML/Reference/Attributes/autocomplete#token_list_tokens)) or the empty string (`""`) if unspecified.

## Examples

```js
const selectElement = document.getElementById("favorite-fruit");
console.log(textArea.autocomplete);
```

## Specifications

## Browser compatibility

## See also

- select
- option
- HTML [`autocomplete`](/docs/Web/HTML/Reference/Attributes/autocomplete) attribute
- ARIA [`aria-autocomplete`](/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-autocomplete) attribute
- [Turning off autocompletion](/docs/Web/Security/Practical_implementation_guides/Turning_off_form_autocompletion)

source: MDN Web Docs mirror · page

Cite this

"HTMLSelectElement: autocomplete property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·