DekGenius.com
Team LiB   Previous Section   Next Section
HTMLSelectElement.remove( ) remove an <option>

Availability

DOM Level 1 HTML

Synopsis

void remove(long index);

Arguments

index

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

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.

See Also

Select object in the client-side reference section

    Team LiB   Previous Section   Next Section