A RetroSearch Logo

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

Search Query:

Showing content from https://developer.cdn.mozilla.net/fr/docs/Web/API/HTMLSelectElement/remove below:

HTMLSelectElement.remove() - Les API Web

HTMLSelectElement.remove()

Baseline Widely available

La méthode HTMLSelectElement.remove() enlève l'option à l'index choisi dans la liste des options de cet objet select.

Syntaxe
collection.remove(index);
Paramètre Exemple
var sel = document.getElementById("maListe");
sel.remove(1);

/*
  Prend l'objet select existant suivant :

  <select id="maListe" name="maListe">
    <option value="1">Option: Value 1</option>
    <option value="2">Option: Value 2</option>
    <option value="3">Option: Value 3</option>
  </select>

  Et le transforme en:

  <select id="maListe" name="maListe">
    <option value="1">Option: Value 1</option>
    <option value="3">Option: Value 3</option>
  </select>
*/
Spécifications Compatibilité des navigateurs Voir aussi

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