JavaScript: The Definitive Guide

25.259. Select.remove( ): remove an <option>

DOM Level 2 HTML

25.259.1. Synopsis

void remove(long index);

25.259.1.1. Arguments

index

The position within the options array of the <option> element to be removed.

25.259.2. Description

This method removes the <option> element at the specified position in the options array. If the specified index is less than zero or greater than or equal to the number of options, the remove( ) method ignores it and does nothing.

25.259.3. See Also

Option

Категории