JavaScript select object method: remove()
[this page | pdf | back links]
The
remove() method of the JavaScript
DOM object
corresponding to the HTML <select>
element removes an option from a drop-down list.
It has the following
syntax with the following parameters:
object.remove(index)
Parameter
|
Required / Optional
|
Description
|
index
|
Required
|
Index position from
where option element is removed (index starts at 0)
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)