HTMLSelectElement: autocomplete プロパティ
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
autocomplete
は HTMLSelectElement
インターフェイスのプロパティで、ブラウザーによってコントロールの値が自動的に補完できるかどうかを示します。これは、 <select>
要素の autocomplete
属性を反映します。
値
文字列で、autocomplete
属性の値("on"
, "off"
, <token-list>
)、または指定されていない場合は空文字列 (""
) です。
例
js
const selectElement = document.getElementById("favorite-fruit");
console.log(textArea.autocomplete);
仕様書
Specification |
---|
HTML # dom-fe-autocomplete |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
autocomplete |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
<select>
<option>
- HTML の
autocomplete
属性 - ARIA の
aria-autocomplete
属性 - 自動補完の無効化