A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ja/docs/Web/API/HTMLSelectElement/length below:

HTMLSelectElement: length プãƒãƒ‘ティ - Web API

HTMLSelectElement: length プロパティ

Baseline Widely available

length は HTMLSelectElement インターフェイスのプロパティで、<select> 要素内の <option> 要素の数を指定します。これは、options コレクション内のノードの数を表します。設定すると、(HTMLOptionsCollection.length) として動作します。

値

数値です。

例
const selectElement = document.getElementById("fruits");
console.log(selectElement.length);
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4