Select.add() (Method)

Adds a new option object to a select list collection.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
JavaScript syntax:-mySelect.add(anElement, anIndex)
Argument list:anElementThe option element to add
anIndexThe index to insert it at