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/remove below:

HTMLSelectElement: remove() メソッド - Web API

HTMLSelectElement: remove() メソッド

Baseline Widely available

HTMLSelectElement.remove() メソッドは、この select 要素の選択肢の集合から指定された位置の要素を削除します。

構文 引数 返値

なし(undefined)。

例
<select id="existingList" name="existingList">
  <option value="1">Option: Value 1</option>
  <option value="2">Option: Value 2</option>
  <option value="3">Option: Value 3</option>
</select>
let sel = document.getElementById("existingList");
sel.remove(1);

HTML は次のようになります。

<select id="existingList" name="existingList">
  <option value="1">Option: Value 1</option>
  <option value="3">Option: Value 3</option>
</select>
仕様書 ブラウザーの互換性 関連情報

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