Baseline Widely available
HTMLSelectElement.remove()
ã¡ã½ããã¯ããã® select è¦ç´ ã®é¸æè¢ã®éåããæå®ãããä½ç½®ã®è¦ç´ ãåé¤ãã¾ãã
index
ã¯ã¼ãããå§ã¾ã long å¤ã§ãéåããåé¤ãã HTMLOptionElement
ã®ä½ç½®ã表ãã¾ãããã®ä½ç½®ã®è¦ç´ ãè¦ã¤ãããªãã£ãå ´åã¯ããã®ã¡ã½ããã¯å¹æãããã¾ããããªãï¼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>
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
Element.remove
ã¯ãHTMLSelectElement
ä¸ã§ remove ã弿°ç¡ãã«å¼ã³åºãããå ´åã«å¼ã³åºãããã¡ã½ããã§ããHTMLSelectElement
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