When you define <OPTION> tags within a <SELECT> block, they instantiate objects to represent each option. These are then made available as members of a collection belonging to the Select object and accessible via its options[] property.
This property indicates the position of this Option object within that collection. The first Option object in the collection is located at index position zero. Note that modifying the set of objects in this collection can cause the index numbers of an option to change.
See also: | Select.options[] |
Prev | Home | Next |
Option.defaultSelected | Up | Option.label |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |